#181827

Closest named color: Rich Black (#0D1B2A). oklch(21.7% 0.029 283.7), rgb(24, 24, 39).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessvery dark (22%)
Chromaclose to neutral grey (0.029)
Temperatureneutral
Nearest nameRich Black (#0D1B2A)
Black text1.19:1
White text17.51:1

Values

HEX#181827
RGBrgb(24, 24, 39)
HSLhsl(240, 24%, 12%)
OKLCHoklch(21.7% 0.029 283.7)

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 #181827 17.51:1 AAA Lc -106.6 Preferred for body text
Black text on #181827 1.19:1 Fails Lc 0.0 Not readable
#181827 text on white 17.51:1 AAA Lc 104.3 Preferred for body text
#181827 text on black 1.19: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

    #F5F5F8

    oklch(97.1% 0.004 286.3)

  2. Step 100

    100

    #E9E9F1

    oklch(93.6% 0.011 286.2)

  3. Step 200

    200

    #D7D8E6

    oklch(88.6% 0.019 282.7)

  4. Step 300

    300

    #BDBED7

    oklch(80.9% 0.035 283.8)

  5. Step 400

    400

    #9C9DC3

    oklch(70.8% 0.055 283.7)

  6. Step 500

    500

    #8484B3

    oklch(63.1% 0.07 284.2)

  7. Step 600

    600

    #6D6D9F

    oklch(55.5% 0.077 283.6)

  8. Step 700

    700

    #5B5B88

    oklch(49% 0.072 283.4)

  9. Step 800

    800

    #4B4B6F

    oklch(42.8% 0.059 283.6)

  10. Step 900

    900

    #3E3E5A

    oklch(37.6% 0.048 283.9)

  11. Step 950

    950 (this color)

    #181827

    oklch(21.7% 0.029 283.7)

Export this scale for Tailwind in the Tailwind colors tool

#181827 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)#141A280.009
Deuteranopia (no green cones)#1319270.009
Tritanopia (no blue cones)#141B1D0.027
Achromatopsia (no color)#1919190.029

Harmonies

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

Complementary

The opposite hue (180°).

  • #181827

    #181827

    oklch(21.7% 0.029 283.7)

  • #1C1A0A

    #1C1A0A

    oklch(21.5% 0.028 102.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #181827

    #181827

    oklch(21.7% 0.029 283.7)

  • #101B27

    #101B27

    oklch(21.8% 0.029 251.3)

  • #1F1623

    #1F1623

    oklch(21.8% 0.028 315.2)

Open the analogous palette in the generator

Split complementary

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

  • #181827

    #181827

    oklch(21.7% 0.029 283.7)

  • #22180A

    #22180A

    oklch(21.8% 0.029 74.6)

  • #141D0F

    #141D0F

    oklch(21.7% 0.029 134.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #181827

    #181827

    oklch(21.7% 0.029 283.7)

  • #25150F

    #25150F

    oklch(21.6% 0.029 41.3)

  • #0C1E16

    #0C1E16

    oklch(21.6% 0.029 163.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #181827

    #181827

    oklch(21.7% 0.029 283.7)

  • #261416

    #261416

    oklch(21.7% 0.03 12.6)

  • #1C1A0A

    #1C1A0A

    oklch(21.5% 0.028 102.2)

  • #071E1E

    #071E1E

    oklch(21.7% 0.029 195.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #181827 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.