#1F170B

Closest named color: Dark Brown (#341C02). oklch(21.1% 0.025 76.9), rgb(31, 23, 11).

Aa

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

About this color

#1F170B is a very dark close to neutral grey. In OKLCH its lightness is 21%, its chroma 0.025. It has too little chroma to lean warm or cool. The nearest named color is Dark Brown (#341C02), ΔE 0.052 away. White text reads best on it, at 17.71:1.

Hue familyNeutrals
Lightnessvery dark (21%)
Chromaclose to neutral grey (0.025)
Temperatureneutral
Nearest nameDark Brown (#341C02)
Black text1.18:1
White text17.71:1

Values

HEX#1F170B
RGBrgb(31, 23, 11)
HSLhsl(36, 48%, 8%)
OKLCHoklch(21.1% 0.025 76.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 #1F170B 17.71:1 AAA Lc -106.7 Preferred for body text
Black text on #1F170B 1.18:1 Fails Lc 0.0 Not readable
#1F170B text on white 17.71:1 AAA Lc 104.5 Preferred for body text
#1F170B 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

    #F7F5F2

    oklch(97.1% 0.005 78.3)

  2. Step 100

    100

    #EDE9E4

    oklch(93.6% 0.008 73.7)

  3. Step 200

    200

    #DFD8CD

    oklch(88.5% 0.017 79.3)

  4. Step 300

    300

    #CCBFAC

    oklch(81% 0.03 77.5)

  5. Step 400

    400

    #B29D80

    oklch(70.7% 0.047 75.8)

  6. Step 500

    500

    #9E8560

    oklch(63.1% 0.06 77.1)

  7. Step 600

    600

    #896E46

    oklch(55.5% 0.066 76.6)

  8. Step 700

    700

    #745C38

    oklch(49% 0.06 76.7)

  9. Step 800

    800

    #5F4B2E

    oklch(42.6% 0.051 76)

  10. Step 900

    900

    #4E3F29

    oklch(37.8% 0.04 76.6)

  11. Step 950

    950 (this color)

    #1F170B

    oklch(21.1% 0.025 76.9)

Export this scale for Tailwind in the Tailwind colors tool

#1F170B 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)#1A170A0.011
Deuteranopia (no green cones)#1C190B0.009
Tritanopia (no blue cones)#2215140.021
Achromatopsia (no color)#1818180.025

Harmonies

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

Complementary

The opposite hue (180°).

  • #1F170B

    #1F170B

    oklch(21.1% 0.025 76.9)

  • #111924

    #111924

    oklch(21.1% 0.025 256.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1F170B

    #1F170B

    oklch(21.1% 0.025 76.9)

  • #22150F

    #22150F

    oklch(21.1% 0.024 45.7)

  • #1A190B

    #1A190B

    oklch(21% 0.025 104.8)

Open the analogous palette in the generator

Split complementary

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

  • #1F170B

    #1F170B

    oklch(21.1% 0.025 76.9)

  • #0B1B21

    #0B1B21

    oklch(21.1% 0.025 224.3)

  • #181724

    #181724

    oklch(21.2% 0.025 287.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1F170B

    #1F170B

    oklch(21.1% 0.025 76.9)

  • #091C1C

    #091C1C

    oklch(21.1% 0.025 195.4)

  • #1D1520

    #1D1520

    oklch(21.1% 0.024 316.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1F170B

    #1F170B

    oklch(21.1% 0.025 76.9)

  • #0C1C16

    #0C1C16

    oklch(21% 0.025 167.9)

  • #111924

    #111924

    oklch(21.1% 0.025 256.5)

  • #21141B

    #21141B

    oklch(21.1% 0.025 345.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #1F170B 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.