#222240

Closest named color: Oxford Blue (#1B263B). oklch(26.8% 0.055 282), rgb(34, 34, 64).

Aa

White text reads best on this color (15.31:1).

About this color

#222240 is a dark, muted purple. In OKLCH its lightness is 27%, its chroma 0.055 and its hue 282°. Its hue sits on the cool side of the wheel. The nearest named color is Oxford Blue (#1B263B), ΔE 0.021 away. White text reads best on it, at 15.31:1.

Hue familyPurples
Lightnessdark (27%)
Chromamuted (0.055)
Temperaturecool
Nearest nameOxford Blue (#1B263B)
Black text1.37:1
White text15.31:1

Values

HEX#222240
RGBrgb(34, 34, 64)
HSLhsl(240, 31%, 19%)
OKLCHoklch(26.8% 0.055 282)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #222240 15.31:1 AAA Lc -104.9 Preferred for body text
Black text on #222240 1.37:1 Fails Lc 0.0 Not readable
#222240 text on white 15.31:1 AAA Lc 102.2 Preferred for body text
#222240 text on black 1.37:1 Fails Lc 0.0 Not readable

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 950.

  1. Step 50

    50

    #F4F5FB

    oklch(97.1% 0.008 278.6)

  2. Step 100

    100

    #E7E9F7

    oklch(93.7% 0.019 279.5)

  3. Step 200

    200

    #D5D7F1

    oklch(88.6% 0.036 282.1)

  4. Step 300

    300

    #B9BCEA

    oklch(80.8% 0.065 281.9)

  5. Step 400

    400

    #9698E0

    oklch(70.6% 0.105 282.1)

  6. Step 500

    500

    #7E7DD7

    oklch(63% 0.133 282.4)

  7. Step 600

    600

    #6865C5

    oklch(55.7% 0.145 282)

  8. Step 700

    700

    #5753AA

    oklch(49.1% 0.135 282.3)

  9. Step 800

    800

    #47458A

    oklch(42.8% 0.111 281.9)

  10. Step 900

    900

    #3B3A6E

    oklch(37.6% 0.087 282.2)

  11. Step 950

    950 (this color)

    #222240

    oklch(26.8% 0.055 282)

Export this scale for Tailwind in the Tailwind colors tool

#222240 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#1726410.020
Deuteranopia (no green cones)#16243F0.019
Tritanopia (no blue cones)#19282D0.049
Achromatopsia (no color)#2525250.055

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #222240

    #222240

    oklch(26.8% 0.055 282)

  • #2B2701

    #2B2701

    oklch(26.9% 0.055 103.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #222240

    #222240

    oklch(26.8% 0.055 282)

  • #102740

    #102740

    oklch(26.8% 0.055 252.3)

  • #2F1D39

    #2F1D39

    oklch(26.7% 0.056 312.7)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #222240

    #222240

    oklch(26.8% 0.055 282)

  • #362102

    #362102

    oklch(26.8% 0.055 72.6)

  • #1C2B0D

    #1C2B0D

    oklch(26.7% 0.054 131.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #222240

    #222240

    oklch(26.8% 0.055 282)

  • #3C1C0F

    #3C1C0F

    oklch(26.9% 0.055 42.2)

  • #042E1E

    #042E1E

    oklch(26.8% 0.054 162.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #222240

    #222240

    oklch(26.8% 0.055 282)

  • #3C191F

    #3C191F

    oklch(26.7% 0.055 10.8)

  • #2B2701

    #2B2701

    oklch(26.9% 0.055 103.5)

  • #002D2C

    #002D2C

    oklch(26.9% 0.046 192.5)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #222240, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #222240 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.