#12181F

Closest named color: Rich Black (#0D1B2A). oklch(20.6% 0.017 252.5), rgb(18, 24, 31).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessvery dark (21%)
Chromaclose to neutral grey (0.017)
Temperatureneutral
Nearest nameRich Black (#0D1B2A)
Black text1.17:1
White text17.85:1

Values

HEX#12181F
RGBrgb(18, 24, 31)
HSLhsl(212, 27%, 10%)
OKLCHoklch(20.6% 0.017 252.5)

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 #12181F 17.85:1 AAA Lc -106.8 Preferred for body text
Black text on #12181F 1.17:1 Fails Lc 0.0 Not readable
#12181F text on white 17.85:1 AAA Lc 104.6 Preferred for body text
#12181F text on black 1.17: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

    #E7EAEE

    oklch(93.6% 0.006 255.5)

  3. Step 200

    200

    #D4DAE0

    oklch(88.6% 0.011 247.9)

  4. Step 300

    300

    #B8C2CD

    oklch(81% 0.019 250.6)

  5. Step 400

    400

    #93A2B4

    oklch(70.6% 0.031 253)

  6. Step 500

    500

    #788BA2

    oklch(63% 0.041 253.3)

  7. Step 600

    600

    #61758D

    oklch(55.5% 0.044 253.2)

  8. Step 700

    700

    #506278

    oklch(49% 0.042 253.7)

  9. Step 800

    800

    #425061

    oklch(42.6% 0.033 253.5)

  10. Step 900

    900

    #384350

    oklch(37.8% 0.027 252.8)

  11. Step 950

    950 (this color)

    #12181F

    oklch(20.6% 0.017 252.5)

Export this scale for Tailwind in the Tailwind colors tool

#12181F 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)#15181F0.005
Deuteranopia (no green cones)#14171F0.005
Tritanopia (no blue cones)#0E1A1A0.016
Achromatopsia (no color)#1717170.017

Harmonies

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

Complementary

The opposite hue (180°).

  • #12181F

    #12181F

    oklch(20.6% 0.017 252.5)

  • #1C160F

    #1C160F

    oklch(20.5% 0.016 71)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #12181F

    #12181F

    oklch(20.6% 0.017 252.5)

  • #0F191D

    #0F191D

    oklch(20.6% 0.017 224.7)

  • #16171F

    #16171F

    oklch(20.7% 0.016 279.3)

Open the analogous palette in the generator

Split complementary

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

  • #12181F

    #12181F

    oklch(20.6% 0.017 252.5)

  • #1E1511

    #1E1511

    oklch(20.6% 0.017 45.1)

  • #19180F

    #19180F

    oklch(20.7% 0.017 102.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #12181F

    #12181F

    oklch(20.6% 0.017 252.5)

  • #1E1415

    #1E1415

    oklch(20.5% 0.017 11.9)

  • #151911

    #151911

    oklch(20.6% 0.017 129.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #12181F

    #12181F

    oklch(20.6% 0.017 252.5)

  • #1D1419

    #1D1419

    oklch(20.5% 0.017 344.3)

  • #1C160F

    #1C160F

    oklch(20.5% 0.016 71)

  • #111A15

    #111A15

    oklch(20.7% 0.017 160.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #12181F 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.