#031D38

Closest named color: Rich Black (#0D1B2A). oklch(22.8% 0.061 251.8), rgb(3, 29, 56).

Aa

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

About this color

#031D38 is a very dark, muted blue. In OKLCH its lightness is 23%, its chroma 0.061 and its hue 252°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.028 away. White text reads best on it, at 16.98:1.

Hue familyBlues
Lightnessvery dark (23%)
Chromamuted (0.061)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.23:1
White text16.98:1

Values

HEX#031D38
RGBrgb(3, 29, 56)
HSLhsl(211, 90%, 12%)
OKLCHoklch(22.8% 0.061 251.8)

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 #031D38 16.98:1 AAA Lc -106.1 Preferred for body text
Black text on #031D38 1.23:1 Fails Lc 0.0 Not readable
#031D38 text on white 16.98:1 AAA Lc 103.7 Preferred for body text
#031D38 text on black 1.23: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

    #F1F6FC

    oklch(97.1% 0.01 252.8)

  2. Step 100

    100

    #E0EBF8

    oklch(93.6% 0.021 252.5)

  3. Step 200

    200

    #C6DCF4

    oklch(88.6% 0.041 250.6)

  4. Step 300

    300

    #9FC4EF

    oklch(80.9% 0.073 252.5)

  5. Step 400

    400

    #68A5E7

    oklch(70.8% 0.116 251.5)

  6. Step 500

    500

    #3B8CE0

    oklch(63.1% 0.149 252.1)

  7. Step 600

    600

    #0A74CE

    oklch(55.5% 0.163 252)

  8. Step 700

    700

    #0061B0

    oklch(49% 0.147 252)

  9. Step 800

    800

    #045090

    oklch(42.8% 0.124 251.6)

  10. Step 900

    900

    #124373

    oklch(37.8% 0.097 251.8)

  11. Step 950

    950 (this color)

    #031D38

    oklch(22.8% 0.061 251.8)

Export this scale for Tailwind in the Tailwind colors tool

#031D38 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)#0F1F390.016
Deuteranopia (no green cones)#061A370.010
Tritanopia (no blue cones)#0023270.045
Achromatopsia (no color)#1C1C1C0.061

Harmonies

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

Complementary

The opposite hue (180°).

  • #031D38

    #031D38

    oklch(22.8% 0.061 251.8)

  • #2A1800

    #2A1800

    oklch(22.8% 0.049 72.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #031D38

    #031D38

    oklch(22.8% 0.061 251.8)

  • #00212A

    #00212A

    oklch(22.9% 0.042 219.6)

  • #191738

    #191738

    oklch(22.7% 0.062 283)

Open the analogous palette in the generator

Split complementary

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

  • #031D38

    #031D38

    oklch(22.8% 0.061 251.8)

  • #331003

    #331003

    oklch(22.7% 0.062 41.7)

  • #211D00

    #211D00

    oklch(22.8% 0.048 102.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #031D38

    #031D38

    oklch(22.8% 0.061 251.8)

  • #330E15

    #330E15

    oklch(22.8% 0.06 11.7)

  • #112201

    #112201

    oklch(22.8% 0.061 132.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #031D38

    #031D38

    oklch(22.8% 0.061 251.8)

  • #2F0F24

    #2F0F24

    oklch(22.9% 0.061 342.8)

  • #2A1800

    #2A1800

    oklch(22.8% 0.049 72.5)

  • #002315

    #002315

    oklch(22.6% 0.049 162.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #031D38 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.