#171F12

Closest named color: Jet (#212529). oklch(22.7% 0.027 133.9), rgb(23, 31, 18).

Aa

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

About this color

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

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

Values

HEX#171F12
RGBrgb(23, 31, 18)
HSLhsl(97, 27%, 10%)
OKLCHoklch(22.7% 0.027 133.9)

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

    #F4F6F3

    oklch(97.1% 0.004 134.8)

  2. Step 100

    100

    #E7EBE5

    oklch(93.5% 0.009 134.9)

  3. Step 200

    200

    #D4DCD0

    oklch(88.5% 0.018 134.9)

  4. Step 300

    300

    #B8C5B1

    oklch(80.8% 0.031 134.4)

  5. Step 400

    400

    #94A888

    oklch(70.7% 0.051 133.8)

  6. Step 500

    500

    #79926A

    oklch(63% 0.065 134)

  7. Step 600

    600

    #627D52

    oklch(55.7% 0.071 134.3)

  8. Step 700

    700

    #516942

    oklch(49.1% 0.066 134)

  9. Step 800

    800

    #435637

    oklch(42.8% 0.055 133.9)

  10. Step 900

    900

    #38472F

    oklch(37.8% 0.044 134.1)

  11. Step 950

    950 (this color)

    #171F12

    oklch(22.7% 0.027 133.9)

Export this scale for Tailwind in the Tailwind colors tool

#171F12 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)#201D110.017
Deuteranopia (no green cones)#1F1C130.018
Tritanopia (no blue cones)#171E1C0.020
Achromatopsia (no color)#1D1D1D0.027

Harmonies

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

Complementary

The opposite hue (180°).

  • #171F12

    #171F12

    oklch(22.7% 0.027 133.9)

  • #211825

    #211825

    oklch(22.6% 0.028 315.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #171F12

    #171F12

    oklch(22.7% 0.027 133.9)

  • #1E1D0E

    #1E1D0E

    oklch(22.7% 0.027 105)

  • #102019

    #102019

    oklch(22.7% 0.026 164.7)

Open the analogous palette in the generator

Split complementary

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

  • #171F12

    #171F12

    oklch(22.7% 0.027 133.9)

  • #1A1B28

    #1A1B28

    oklch(22.7% 0.025 280.8)

  • #25171F

    #25171F

    oklch(22.6% 0.027 344.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #171F12

    #171F12

    oklch(22.7% 0.027 133.9)

  • #131D29

    #131D29

    oklch(22.7% 0.028 253.4)

  • #271718

    #271718

    oklch(22.6% 0.026 15.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #171F12

    #171F12

    oklch(22.7% 0.027 133.9)

  • #0D1F26

    #0D1F26

    oklch(22.7% 0.027 225.3)

  • #211825

    #211825

    oklch(22.6% 0.028 315.3)

  • #271812

    #271812

    oklch(22.7% 0.027 42.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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