#171F18

Closest named color: Jet (#212529). oklch(22.9% 0.018 148.4), rgb(23, 31, 24).

Aa

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

About this color

#171F18 is a very dark close to neutral grey. In OKLCH its lightness is 23%, its chroma 0.018. It has too little chroma to lean warm or cool. The nearest named color is Jet (#212529), ΔE 0.040 away. White text reads best on it, at 16.85:1.

Hue familyNeutrals
Lightnessvery dark (23%)
Chromaclose to neutral grey (0.018)
Temperatureneutral
Nearest nameJet (#212529)
Black text1.24:1
White text16.85:1

Values

HEX#171F18
RGBrgb(23, 31, 24)
HSLhsl(128, 15%, 11%)
OKLCHoklch(22.9% 0.018 148.4)

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 #171F18 16.85:1 AAA Lc -106.2 Preferred for body text
Black text on #171F18 1.24:1 Fails Lc 0.0 Not readable
#171F18 text on white 16.85:1 AAA Lc 103.8 Preferred for body text
#171F18 text on black 1.24: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

    #F4F6F4

    oklch(97.1% 0.003 145.5)

  2. Step 100

    100

    #E7EBE8

    oklch(93.6% 0.006 153.8)

  3. Step 200

    200

    #D4DBD5

    oklch(88.4% 0.011 149.8)

  4. Step 300

    300

    #B8C5B9

    oklch(81% 0.022 147.6)

  5. Step 400

    400

    #93A795

    oklch(70.8% 0.034 148)

  6. Step 500

    500

    #78917B

    oklch(63.1% 0.043 148.4)

  7. Step 600

    600

    #617B64

    oklch(55.6% 0.046 148.1)

  8. Step 700

    700

    #506853

    oklch(49.1% 0.044 148.3)

  9. Step 800

    800

    #425544

    oklch(42.8% 0.036 147.7)

  10. Step 900

    900

    #384639

    oklch(37.8% 0.028 146.9)

  11. Step 950

    950 (this color)

    #171F18

    oklch(22.9% 0.018 148.4)

Export this scale for Tailwind in the Tailwind colors tool

#171F18 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)#1F1E180.014
Deuteranopia (no green cones)#1E1D180.014
Tritanopia (no blue cones)#161F1D0.009
Achromatopsia (no color)#1D1D1D0.018

Harmonies

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

Complementary

The opposite hue (180°).

  • #171F18

    #171F18

    oklch(22.9% 0.018 148.4)

  • #211A21

    #211A21

    oklch(22.9% 0.017 326.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #171F18

    #171F18

    oklch(22.9% 0.018 148.4)

  • #1C1E14

    #1C1E14

    oklch(22.9% 0.019 117.1)

  • #131F1D

    #131F1D

    oklch(22.7% 0.017 183.3)

Open the analogous palette in the generator

Split complementary

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

  • #171F18

    #171F18

    oklch(22.9% 0.018 148.4)

  • #1E1B24

    #1E1B24

    oklch(23% 0.018 300.2)

  • #24191C

    #24191C

    oklch(22.8% 0.018 0.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #171F18

    #171F18

    oklch(22.9% 0.018 148.4)

  • #191C25

    #191C25

    oklch(22.7% 0.018 270.5)

  • #241A18

    #241A18

    oklch(22.9% 0.017 31.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #171F18

    #171F18

    oklch(22.9% 0.018 148.4)

  • #151E24

    #151E24

    oklch(22.9% 0.017 237.7)

  • #211A21

    #211A21

    oklch(22.9% 0.017 326.1)

  • #231B14

    #231B14

    oklch(22.9% 0.018 62.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #171F18 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.