#1F1218

Closest named color: Rich Black (#0D1B2A). oklch(20.2% 0.024 350.2), rgb(31, 18, 24).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessvery dark (20%)
Chromaclose to neutral grey (0.024)
Temperatureneutral
Nearest nameRich Black (#0D1B2A)
Black text1.15:1
White text18.13:1

Values

HEX#1F1218
RGBrgb(31, 18, 24)
HSLhsl(332, 27%, 10%)
OKLCHoklch(20.2% 0.024 350.2)

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 #1F1218 18.13:1 AAA Lc -107.0 Preferred for body text
Black text on #1F1218 1.15:1 Fails Lc 0.0 Not readable
#1F1218 text on white 18.13:1 AAA Lc 104.8 Preferred for body text
#1F1218 text on black 1.15: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

    #F8F4F6

    oklch(97.1% 0.005 345.3)

  2. Step 100

    100

    #EEE8EA

    oklch(93.6% 0.007 354.8)

  3. Step 200

    200

    #E2D5DA

    oklch(88.5% 0.016 352)

  4. Step 300

    300

    #D0B9C3

    oklch(80.8% 0.029 349.6)

  5. Step 400

    400

    #B895A4

    oklch(70.6% 0.046 350.7)

  6. Step 500

    500

    #A57B8E

    oklch(63% 0.058 350.1)

  7. Step 600

    600

    #906478

    oklch(55.5% 0.063 350.5)

  8. Step 700

    700

    #7B5365

    oklch(49.2% 0.059 350.9)

  9. Step 800

    800

    #644453

    oklch(42.7% 0.049 349.7)

  10. Step 900

    900

    #513944

    oklch(37.6% 0.038 349.9)

  11. Step 950

    950 (this color)

    #1F1218

    oklch(20.2% 0.024 350.2)

Export this scale for Tailwind in the Tailwind colors tool

#1F1218 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)#1314180.026
Deuteranopia (no green cones)#1617180.025
Tritanopia (no blue cones)#2112140.009
Achromatopsia (no color)#1616160.024

Harmonies

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

Complementary

The opposite hue (180°).

  • #1F1218

    #1F1218

    oklch(20.2% 0.024 350.2)

  • #0A1A15

    #0A1A15

    oklch(20.2% 0.024 171.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #1F1218

    #1F1218

    oklch(20.2% 0.024 350.2)

  • #1B131D

    #1B131D

    oklch(20.2% 0.023 319.5)

  • #201212

    #201212

    oklch(20.1% 0.024 19.3)

Open the analogous palette in the generator

Split complementary

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

  • #1F1218

    #1F1218

    oklch(20.2% 0.024 350.2)

  • #11190F

    #11190F

    oklch(20.2% 0.023 139.4)

  • #081A1B

    #081A1B

    oklch(20.3% 0.024 200.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #1F1218

    #1F1218

    oklch(20.2% 0.024 350.2)

  • #17180A

    #17180A

    oklch(20.3% 0.026 112)

  • #0A191F

    #0A191F

    oklch(20.3% 0.024 225.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #1F1218

    #1F1218

    oklch(20.2% 0.024 350.2)

  • #1C150A

    #1C150A

    oklch(20.1% 0.023 78.2)

  • #0A1A15

    #0A1A15

    oklch(20.2% 0.024 171.6)

  • #101722

    #101722

    oklch(20.3% 0.025 259.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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