#12171E

Closest named color: Rich Black (#0D1B2A). oklch(20.3% 0.016 256.8), rgb(18, 23, 30).

Aa

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

About this color

#12171E is a very dark close to neutral grey. In OKLCH its lightness is 20%, its chroma 0.016. It has too little chroma to lean warm or cool. The nearest named color is Rich Black (#0D1B2A), ΔE 0.025 away. White text reads best on it, at 17.99:1.

Hue familyNeutrals
Lightnessvery dark (20%)
Chromaclose to neutral grey (0.016)
Temperatureneutral
Nearest nameRich Black (#0D1B2A)
Black text1.16:1
White text17.99:1

Values

HEX#12171E
RGBrgb(18, 23, 30)
HSLhsl(215, 25%, 9%)
OKLCHoklch(20.3% 0.016 256.8)

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 #12171E 17.99:1 AAA Lc -106.9 Preferred for body text
Black text on #12171E 1.16:1 Fails Lc 0.0 Not readable
#12171E text on white 17.99:1 AAA Lc 104.7 Preferred for body text
#12171E text on black 1.16: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

    #F4F5F7

    oklch(97% 0.003 264.5)

  2. Step 100

    100

    #E7EAED

    oklch(93.6% 0.005 247.9)

  3. Step 200

    200

    #D5D9E0

    oklch(88.4% 0.011 261.8)

  4. Step 300

    300

    #B9C1CD

    oklch(80.8% 0.019 258.4)

  5. Step 400

    400

    #95A2B4

    oklch(70.8% 0.03 256.5)

  6. Step 500

    500

    #7B8BA1

    oklch(63.2% 0.038 256.4)

  7. Step 600

    600

    #64758C

    oklch(55.7% 0.041 256)

  8. Step 700

    700

    #536277

    oklch(49.2% 0.039 256.8)

  9. Step 800

    800

    #445061

    oklch(42.8% 0.032 257.1)

  10. Step 900

    900

    #39424F

    oklch(37.6% 0.025 257.5)

  11. Step 950

    950 (this color)

    #12171E

    oklch(20.3% 0.016 256.8)

Export this scale for Tailwind in the Tailwind colors tool

#12171E 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)#15171E0.005
Deuteranopia (no green cones)#13161E0.004
Tritanopia (no blue cones)#0F18190.013
Achromatopsia (no color)#1717170.016

Harmonies

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

Complementary

The opposite hue (180°).

  • #12171E

    #12171E

    oklch(20.3% 0.016 256.8)

  • #1B160E

    #1B160E

    oklch(20.4% 0.017 79.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #12171E

    #12171E

    oklch(20.3% 0.016 256.8)

  • #0F181C

    #0F181C

    oklch(20.2% 0.015 227.1)

  • #16161E

    #16161E

    oklch(20.4% 0.016 284.9)

Open the analogous palette in the generator

Split complementary

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

  • #12171E

    #12171E

    oklch(20.3% 0.016 256.8)

  • #1D1410

    #1D1410

    oklch(20.1% 0.017 45.1)

  • #17170F

    #17170F

    oklch(20.2% 0.015 107.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #12171E

    #12171E

    oklch(20.3% 0.016 256.8)

  • #1D1414

    #1D1414

    oklch(20.3% 0.015 18.5)

  • #131811

    #131811

    oklch(20.1% 0.016 136.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #12171E

    #12171E

    oklch(20.3% 0.016 256.8)

  • #1C1418

    #1C1418

    oklch(20.3% 0.015 347)

  • #1B160E

    #1B160E

    oklch(20.4% 0.017 79.2)

  • #101915

    #101915

    oklch(20.3% 0.015 165.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #12171E 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.