#031B39

Closest named color: Rich Black (#0D1B2A). oklch(22.3% 0.066 255.1), rgb(3, 27, 57).

Aa

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

About this color

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

Hue familyBlues
Lightnessvery dark (22%)
Chromamuted (0.066)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.21:1
White text17.21:1

Values

HEX#031B39
RGBrgb(3, 27, 57)
HSLhsl(213, 90%, 12%)
OKLCHoklch(22.3% 0.066 255.1)

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 #031B39 17.21:1 AAA Lc -106.2 Preferred for body text
Black text on #031B39 1.21:1 Fails Lc 0.0 Not readable
#031B39 text on white 17.21:1 AAA Lc 103.9 Preferred for body text
#031B39 text on black 1.21: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

    #F1F6FD

    oklch(97.1% 0.011 256.7)

  2. Step 100

    100

    #E0EBF9

    oklch(93.6% 0.022 254.4)

  3. Step 200

    200

    #C7DBF6

    oklch(88.5% 0.043 255.9)

  4. Step 300

    300

    #9FC4F3

    oklch(81% 0.078 254.6)

  5. Step 400

    400

    #69A3ED

    oklch(70.7% 0.125 255.1)

  6. Step 500

    500

    #3D8AE7

    oklch(63.1% 0.159 255)

  7. Step 600

    600

    #1471D5

    oklch(55.5% 0.174 255.2)

  8. Step 700

    700

    #025EB9

    oklch(49% 0.162 255.3)

  9. Step 800

    800

    #0A4E95

    oklch(42.7% 0.132 254.7)

  10. Step 900

    900

    #144177

    oklch(37.6% 0.104 255.3)

  11. Step 950

    950 (this color)

    #031B39

    oklch(22.3% 0.066 255.1)

Export this scale for Tailwind in the Tailwind colors tool

#031B39 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)#0B1E3A0.015
Deuteranopia (no green cones)#0119380.008
Tritanopia (no blue cones)#0022270.048
Achromatopsia (no color)#1B1B1B0.066

Harmonies

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

Complementary

The opposite hue (180°).

  • #031B39

    #031B39

    oklch(22.3% 0.066 255.1)

  • #281800

    #281800

    oklch(22.5% 0.047 76)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #031B39

    #031B39

    oklch(22.3% 0.066 255.1)

  • #001F2A

    #001F2A

    oklch(22.3% 0.042 225.3)

  • #191538

    #191538

    oklch(22.3% 0.066 284.9)

Open the analogous palette in the generator

Split complementary

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

  • #031B39

    #031B39

    oklch(22.3% 0.066 255.1)

  • #320F00

    #320F00

    oklch(22.3% 0.063 45.4)

  • #1F1C00

    #1F1C00

    oklch(22.3% 0.047 104)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #031B39

    #031B39

    oklch(22.3% 0.066 255.1)

  • #340B11

    #340B11

    oklch(22.4% 0.066 15.7)

  • #0C2200

    #0C2200

    oklch(22.5% 0.066 135.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #031B39

    #031B39

    oklch(22.3% 0.066 255.1)

  • #2F0C22

    #2F0C22

    oklch(22.3% 0.065 345)

  • #281800

    #281800

    oklch(22.5% 0.047 76)

  • #002216

    #002216

    oklch(22.3% 0.047 165.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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