#042039

Closest named color: Rich Black (#0D1B2A). oklch(23.8% 0.059 249), rgb(4, 32, 57).

Aa

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

About this color

#042039 is a very dark, muted blue. In OKLCH its lightness is 24%, its chroma 0.059 and its hue 249°. 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 16.52:1.

Hue familyBlues
Lightnessvery dark (24%)
Chromamuted (0.059)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.27:1
White text16.52:1

Values

HEX#042039
RGBrgb(4, 32, 57)
HSLhsl(208, 87%, 12%)
OKLCHoklch(23.8% 0.059 249)

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 #042039 16.52:1 AAA Lc -105.8 Preferred for body text
Black text on #042039 1.27:1 Fails Lc 0.0 Not readable
#042039 text on white 16.52:1 AAA Lc 103.2 Preferred for body text
#042039 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

    #F1F6FC

    oklch(97.1% 0.01 252.8)

  2. Step 100

    100

    #E0EBF7

    oklch(93.5% 0.02 250.4)

  3. Step 200

    200

    #C6DCF2

    oklch(88.5% 0.038 248.3)

  4. Step 300

    300

    #9EC5EC

    oklch(80.9% 0.069 248.7)

  5. Step 400

    400

    #67A6E3

    oklch(70.8% 0.111 248.9)

  6. Step 500

    500

    #388EDB

    oklch(63.1% 0.142 249.1)

  7. Step 600

    600

    #0076C8

    oklch(55.5% 0.154 249.2)

  8. Step 700

    700

    #0063A9

    oklch(49% 0.136 249.1)

  9. Step 800

    800

    #00518C

    oklch(42.7% 0.118 249.2)

  10. Step 900

    900

    #0F4470

    oklch(37.8% 0.092 248.7)

  11. Step 950

    950 (this color)

    #042039

    oklch(23.8% 0.059 249)

Export this scale for Tailwind in the Tailwind colors tool

#042039 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)#14213A0.019
Deuteranopia (no green cones)#0C1D390.012
Tritanopia (no blue cones)#0026290.043
Achromatopsia (no color)#1F1F1F0.059

Harmonies

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

Complementary

The opposite hue (180°).

  • #042039

    #042039

    oklch(23.8% 0.059 249)

  • #2E1900

    #2E1900

    oklch(23.7% 0.052 68.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042039

    #042039

    oklch(23.8% 0.059 249)

  • #00232D

    #00232D

    oklch(23.7% 0.044 221.1)

  • #191B3A

    #191B3A

    oklch(23.9% 0.059 278.2)

Open the analogous palette in the generator

Split complementary

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

  • #042039

    #042039

    oklch(23.8% 0.059 249)

  • #351308

    #351308

    oklch(23.8% 0.058 38.4)

  • #251F00

    #251F00

    oklch(23.9% 0.049 98.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042039

    #042039

    oklch(23.8% 0.059 249)

  • #351119

    #351119

    oklch(23.8% 0.058 8.9)

  • #162402

    #162402

    oklch(23.9% 0.059 128.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042039

    #042039

    oklch(23.8% 0.059 249)

  • #301228

    #301228

    oklch(23.8% 0.059 338.6)

  • #2E1900

    #2E1900

    oklch(23.7% 0.052 68.5)

  • #002615

    #002615

    oklch(23.7% 0.054 159.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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