#181F28

Closest named color: Dark (#1B2431). oklch(23.7% 0.02 254.9), rgb(24, 31, 40).

Aa

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

About this color

#181F28 is a very dark close to neutral grey. In OKLCH its lightness is 24%, its chroma 0.020. It has too little chroma to lean warm or cool. The nearest named color is Dark (#1B2431), ΔE 0.023 away. White text reads best on it, at 16.59:1.

Hue familyNeutrals
Lightnessvery dark (24%)
Chromaclose to neutral grey (0.020)
Temperatureneutral
Nearest nameDark (#1B2431)
Black text1.26:1
White text16.59:1

Values

HEX#181F28
RGBrgb(24, 31, 40)
HSLhsl(214, 25%, 13%)
OKLCHoklch(23.7% 0.02 254.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 #181F28 16.59:1 AAA Lc -106.0 Preferred for body text
Black text on #181F28 1.26:1 Fails Lc 0.0 Not readable
#181F28 text on white 16.59:1 AAA Lc 103.5 Preferred for body text
#181F28 text on black 1.26: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

    #F4F5F8

    oklch(97% 0.004 271.4)

  2. Step 100

    100

    #E7EAEE

    oklch(93.6% 0.006 255.5)

  3. Step 200

    200

    #D3DAE2

    oklch(88.5% 0.013 251.6)

  4. Step 300

    300

    #B7C2D0

    oklch(81% 0.023 254.4)

  5. Step 400

    400

    #91A2B9

    oklch(70.7% 0.039 256)

  6. Step 500

    500

    #768BA7

    oklch(63% 0.049 255.7)

  7. Step 600

    600

    #5E7592

    oklch(55.5% 0.053 254.5)

  8. Step 700

    700

    #4E627D

    oklch(49.1% 0.05 256)

  9. Step 800

    800

    #405065

    oklch(42.6% 0.041 255.4)

  10. Step 900

    900

    #364353

    oklch(37.8% 0.032 253.8)

  11. Step 950

    950 (this color)

    #181F28

    oklch(23.7% 0.02 254.9)

Export this scale for Tailwind in the Tailwind colors tool

#181F28 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)#1C1F280.007
Deuteranopia (no green cones)#1A1E280.005
Tritanopia (no blue cones)#1321220.018
Achromatopsia (no color)#1E1E1E0.020

Harmonies

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

Complementary

The opposite hue (180°).

  • #181F28

    #181F28

    oklch(23.7% 0.02 254.9)

  • #241D14

    #241D14

    oklch(23.6% 0.02 73.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #181F28

    #181F28

    oklch(23.7% 0.02 254.9)

  • #142126

    #142126

    oklch(23.8% 0.02 223.9)

  • #1D1D28

    #1D1D28

    oklch(23.6% 0.021 284.7)

Open the analogous palette in the generator

Split complementary

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

  • #181F28

    #181F28

    oklch(23.7% 0.02 254.9)

  • #271C17

    #271C17

    oklch(23.8% 0.02 45.6)

  • #201F14

    #201F14

    oklch(23.7% 0.02 103.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #181F28

    #181F28

    oklch(23.7% 0.02 254.9)

  • #271B1B

    #271B1B

    oklch(23.7% 0.019 18.6)

  • #1A2117

    #1A2117

    oklch(23.7% 0.021 136.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #181F28

    #181F28

    oklch(23.7% 0.02 254.9)

  • #261B21

    #261B21

    oklch(23.8% 0.02 344.8)

  • #241D14

    #241D14

    oklch(23.6% 0.02 73.6)

  • #15221C

    #15221C

    oklch(23.8% 0.022 164.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #181F28 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.