#20122A

Closest named color: Rich Black (#0D1B2A). oklch(21.4% 0.049 309.7), rgb(32, 18, 42).

Aa

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

About this color

#20122A is a very dark, muted purple. In OKLCH its lightness is 21%, its chroma 0.049 and its hue 310°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.043 away. White text reads best on it, at 17.77:1.

Hue familyPurples
Lightnessvery dark (21%)
Chromamuted (0.049)
Temperaturein between
Nearest nameRich Black (#0D1B2A)
Black text1.18:1
White text17.77:1

Values

HEX#20122A
RGBrgb(32, 18, 42)
HSLhsl(275, 40%, 12%)
OKLCHoklch(21.4% 0.049 309.7)

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 #20122A 17.77:1 AAA Lc -106.7 Preferred for body text
Black text on #20122A 1.18:1 Fails Lc 0.0 Not readable
#20122A text on white 17.77:1 AAA Lc 104.5 Preferred for body text
#20122A text on black 1.18: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

    #F7F4F9

    oklch(97.1% 0.007 312.3)

  2. Step 100

    100

    #EDE7F3

    oklch(93.6% 0.017 308.3)

  3. Step 200

    200

    #E0D4EA

    oklch(88.6% 0.032 309.9)

  4. Step 300

    300

    #CCB7DD

    oklch(80.9% 0.057 309.9)

  5. Step 400

    400

    #B290CD

    oklch(70.6% 0.094 309.5)

  6. Step 500

    500

    #9F74BF

    oklch(63.1% 0.119 309.7)

  7. Step 600

    600

    #8A5BAC

    oklch(55.6% 0.13 309.5)

  8. Step 700

    700

    #754B93

    oklch(49.1% 0.119 309.6)

  9. Step 800

    800

    #5F3E77

    oklch(42.7% 0.098 309.5)

  10. Step 900

    900

    #4E3560

    oklch(37.7% 0.077 309.9)

  11. Step 950

    950 (this color)

    #20122A

    oklch(21.4% 0.049 309.7)

Export this scale for Tailwind in the Tailwind colors tool

#20122A 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)#0C172B0.039
Deuteranopia (no green cones)#1018290.035
Tritanopia (no blue cones)#1F161C0.034
Achromatopsia (no color)#1818180.049

Harmonies

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

Complementary

The opposite hue (180°).

  • #20122A

    #20122A

    oklch(21.4% 0.049 309.7)

  • #121D04

    #121D04

    oklch(21.3% 0.047 129.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #20122A

    #20122A

    oklch(21.4% 0.049 309.7)

  • #15162F

    #15162F

    oklch(21.4% 0.049 279.7)

  • #280F20

    #280F20

    oklch(21.4% 0.05 340.9)

Open the analogous palette in the generator

Split complementary

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

  • #20122A

    #20122A

    oklch(21.4% 0.049 309.7)

  • #1E1900

    #1E1900

    oklch(21.3% 0.044 99.3)

  • #002011

    #002011

    oklch(21.5% 0.049 159.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #20122A

    #20122A

    oklch(21.4% 0.049 309.7)

  • #271500

    #271500

    oklch(21.6% 0.047 70)

  • #001E1D

    #001E1D

    oklch(21.2% 0.036 191.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #20122A

    #20122A

    oklch(21.4% 0.049 309.7)

  • #2C1007

    #2C1007

    oklch(21.5% 0.05 38.8)

  • #121D04

    #121D04

    oklch(21.3% 0.047 129.1)

  • #001D25

    #001D25

    oklch(21.3% 0.039 219)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #20122A 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.