#151F31

Closest named color: Dark (#1B2431). oklch(23.9% 0.038 261.7), rgb(21, 31, 49).

Aa

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

About this color

#151F31 is a very dark, muted blue. In OKLCH its lightness is 24%, its chroma 0.038 and its hue 262°. Its hue sits on the cool side of the wheel. The nearest named color is Dark (#1B2431), ΔE 0.021 away. White text reads best on it, at 16.50:1.

Hue familyBlues
Lightnessvery dark (24%)
Chromamuted (0.038)
Temperaturecool
Nearest nameDark (#1B2431)
Black text1.27:1
White text16.50:1

Values

HEX#151F31
RGBrgb(21, 31, 49)
HSLhsl(219, 40%, 14%)
OKLCHoklch(23.9% 0.038 261.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 #151F31 16.50:1 AAA Lc -105.9 Preferred for body text
Black text on #151F31 1.27:1 Fails Lc 0.0 Not readable
#151F31 text on white 16.50:1 AAA Lc 103.4 Preferred for body text
#151F31 text on black 1.27: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

    #F3F5FA

    oklch(97% 0.007 268.5)

  2. Step 100

    100

    #E5EAF3

    oklch(93.6% 0.013 262.4)

  3. Step 200

    200

    #D0DAEA

    oklch(88.6% 0.025 259.8)

  4. Step 300

    300

    #B1C1DE

    oklch(80.8% 0.045 262.4)

  5. Step 400

    400

    #88A1CE

    oklch(70.6% 0.072 262)

  6. Step 500

    500

    #6B8AC1

    oklch(63.2% 0.091 261.5)

  7. Step 600

    600

    #5273AD

    oklch(55.6% 0.098 261.1)

  8. Step 700

    700

    #436095

    oklch(49.1% 0.092 261.7)

  9. Step 800

    800

    #374F79

    oklch(42.8% 0.076 261.1)

  10. Step 900

    900

    #304161

    oklch(37.6% 0.059 262.4)

  11. Step 950

    950 (this color)

    #151F31

    oklch(23.9% 0.038 261.7)

Export this scale for Tailwind in the Tailwind colors tool

#151F31 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)#1820320.006
Deuteranopia (no green cones)#151E310.004
Tritanopia (no blue cones)#0923250.035
Achromatopsia (no color)#1F1F1F0.038

Harmonies

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

Complementary

The opposite hue (180°).

  • #151F31

    #151F31

    oklch(23.9% 0.038 261.7)

  • #281D08

    #281D08

    oklch(23.9% 0.038 81.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #151F31

    #151F31

    oklch(23.9% 0.038 261.7)

  • #09222E

    #09222E

    oklch(23.9% 0.038 232.4)

  • #1F1C30

    #1F1C30

    oklch(24% 0.038 290.1)

Open the analogous palette in the generator

Split complementary

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

  • #151F31

    #151F31

    oklch(23.9% 0.038 261.7)

  • #2D1A0E

    #2D1A0E

    oklch(24% 0.037 52.4)

  • #20210A

    #20210A

    oklch(24% 0.038 111.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #151F31

    #151F31

    oklch(23.9% 0.038 261.7)

  • #2F1817

    #2F1817

    oklch(24.1% 0.037 22.9)

  • #152413

    #152413

    oklch(24.1% 0.038 141.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #151F31

    #151F31

    oklch(23.9% 0.038 261.7)

  • #2D1721

    #2D1721

    oklch(23.9% 0.039 351.7)

  • #281D08

    #281D08

    oklch(23.9% 0.038 81.5)

  • #08251D

    #08251D

    oklch(24% 0.038 171.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #151F31 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.