#031838

Closest named color: Rich Black (#0D1B2A). oklch(21.4% 0.069 257.8), rgb(3, 24, 56).

Aa

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

About this color

#031838 is a very dark, muted blue. In OKLCH its lightness is 21%, its chroma 0.069 and its hue 258°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.034 away. White text reads best on it, at 17.62:1.

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

Values

HEX#031838
RGBrgb(3, 24, 56)
HSLhsl(216, 90%, 12%)
OKLCHoklch(21.4% 0.069 257.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 #031838 17.62:1 AAA Lc -106.5 Preferred for body text
Black text on #031838 1.19:1 Fails Lc 0.0 Not readable
#031838 text on white 17.62:1 AAA Lc 104.2 Preferred for body text
#031838 text on black 1.19: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

    #E0EBFA

    oklch(93.6% 0.024 256.1)

  3. Step 200

    200

    #C7DBF7

    oklch(88.5% 0.044 256.8)

  4. Step 300

    300

    #A0C3F5

    oklch(80.9% 0.081 257.3)

  5. Step 400

    400

    #6CA2F1

    oklch(70.8% 0.13 257.8)

  6. Step 500

    500

    #4288EC

    oklch(63.2% 0.166 257.7)

  7. Step 600

    600

    #206FDA

    oklch(55.6% 0.18 257.8)

  8. Step 700

    700

    #115CBD

    oklch(49.1% 0.168 257.8)

  9. Step 800

    800

    #134C99

    oklch(42.8% 0.139 257.8)

  10. Step 900

    900

    #17407A

    oklch(37.7% 0.109 257.8)

  11. Step 950

    950 (this color)

    #031838

    oklch(21.4% 0.069 257.8)

Export this scale for Tailwind in the Tailwind colors tool

#031838 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)#051B390.011
Deuteranopia (no green cones)#0016370.009
Tritanopia (no blue cones)#0020250.052
Achromatopsia (no color)#1919190.069

Harmonies

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

Complementary

The opposite hue (180°).

  • #031838

    #031838

    oklch(21.4% 0.069 257.8)

  • #241600

    #241600

    oklch(21.3% 0.044 78.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #031838

    #031838

    oklch(21.4% 0.069 257.8)

  • #001D28

    #001D28

    oklch(21.5% 0.041 226.5)

  • #191236

    #191236

    oklch(21.5% 0.068 288.3)

Open the analogous palette in the generator

Split complementary

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

  • #031838

    #031838

    oklch(21.4% 0.069 257.8)

  • #2E0F00

    #2E0F00

    oklch(21.5% 0.058 48.3)

  • #1C1B00

    #1C1B00

    oklch(21.6% 0.047 107.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #031838

    #031838

    oklch(21.4% 0.069 257.8)

  • #32070D

    #32070D

    oklch(21.3% 0.069 17.2)

  • #072000

    #072000

    oklch(21.5% 0.067 138)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #031838

    #031838

    oklch(21.4% 0.069 257.8)

  • #2E081F

    #2E081F

    oklch(21.3% 0.069 347.2)

  • #241600

    #241600

    oklch(21.3% 0.044 78.3)

  • #001F15

    #001F15

    oklch(21.3% 0.043 168)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #031838 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.