#181F51

Closest named color: Dark Indigo (#1F0954). oklch(26.7% 0.091 272.6), rgb(24, 31, 81).

Aa

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

About this color

#181F51 is a dark, moderately saturated blue. In OKLCH its lightness is 27%, its chroma 0.091 and its hue 273°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Indigo (#1F0954), ΔE 0.048 away. White text reads best on it, at 15.51:1.

Hue familyBlues
Lightnessdark (27%)
Chromamoderately saturated (0.091)
Temperaturecool
Nearest nameDark Indigo (#1F0954)
Black text1.35:1
White text15.51:1

Values

HEX#181F51
RGBrgb(24, 31, 81)
HSLhsl(233, 54%, 21%)
OKLCHoklch(26.7% 0.091 272.6)

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 #181F51 15.51:1 AAA Lc -104.9 Preferred for body text
Black text on #181F51 1.35:1 Fails Lc 0.0 Not readable
#181F51 text on white 15.51:1 AAA Lc 102.2 Preferred for body text
#181F51 text on black 1.35: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

    #F2F5FF

    oklch(97.1% 0.014 272.7)

  2. Step 100

    100

    #E3E9FF

    oklch(93.6% 0.03 273.6)

  3. Step 200

    200

    #CCD8FF

    oklch(88.6% 0.055 271.8)

  4. Step 300

    300

    #ABBDFF

    oklch(80.9% 0.096 272.3)

  5. Step 400

    400

    #8198FF

    oklch(70.7% 0.153 272.5)

  6. Step 500

    500

    #6479FF

    oklch(63% 0.199 272.7)

  7. Step 600

    600

    #4C57FC

    oklch(55.5% 0.241 272.6)

  8. Step 700

    700

    #3E46DC

    oklch(49.2% 0.223 272.4)

  9. Step 800

    800

    #333BB1

    oklch(42.7% 0.184 272.7)

  10. Step 900

    900

    #2B358C

    oklch(37.8% 0.143 272.5)

  11. Step 950

    950 (this color)

    #181F51

    oklch(26.7% 0.091 272.6)

Export this scale for Tailwind in the Tailwind colors tool

#181F51 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)#0027530.030
Deuteranopia (no green cones)#0022500.025
Tritanopia (no blue cones)#002B340.076
Achromatopsia (no color)#2424240.091

Harmonies

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

Complementary

The opposite hue (180°).

  • #181F51

    #181F51

    oklch(26.7% 0.091 272.6)

  • #2F2400

    #2F2400

    oklch(26.6% 0.054 91.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #181F51

    #181F51

    oklch(26.7% 0.091 272.6)

  • #002842

    #002842

    oklch(26.6% 0.064 243.1)

  • #2F1749

    #2F1749

    oklch(26.7% 0.09 302.9)

Open the analogous palette in the generator

Split complementary

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

  • #181F51

    #181F51

    oklch(26.7% 0.091 272.6)

  • #3A1E00

    #3A1E00

    oklch(26.7% 0.061 63.3)

  • #202A00

    #202A00

    oklch(26.6% 0.065 122.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #181F51

    #181F51

    oklch(26.7% 0.091 272.6)

  • #480D04

    #480D04

    oklch(26.6% 0.09 32.4)

  • #002F14

    #002F14

    oklch(26.7% 0.07 152.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #181F51

    #181F51

    oklch(26.7% 0.091 272.6)

  • #460A22

    #460A22

    oklch(26.6% 0.091 1.9)

  • #2F2400

    #2F2400

    oklch(26.6% 0.054 91.5)

  • #002D28

    #002D28

    oklch(26.7% 0.047 183.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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