#042139

Closest named color: Rich Black (#0D1B2A). oklch(24.1% 0.057 247.4), rgb(4, 33, 57).

Aa

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

About this color

#042139 is a very dark, muted blue. In OKLCH its lightness is 24%, its chroma 0.057 and its hue 247°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Black (#0D1B2A), ΔE 0.032 away. White text reads best on it, at 16.38:1.

Hue familyBlues
Lightnessvery dark (24%)
Chromamuted (0.057)
Temperaturecool
Nearest nameRich Black (#0D1B2A)
Black text1.28:1
White text16.38:1

Values

HEX#042139
RGBrgb(4, 33, 57)
HSLhsl(207, 87%, 12%)
OKLCHoklch(24.1% 0.057 247.4)

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 #042139 16.38:1 AAA Lc -105.6 Preferred for body text
Black text on #042139 1.28:1 Fails Lc 0.0 Not readable
#042139 text on white 16.38:1 AAA Lc 103.1 Preferred for body text
#042139 text on black 1.28: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

    #F1F6FB

    oklch(97.1% 0.009 247.9)

  2. Step 100

    100

    #E0EBF7

    oklch(93.5% 0.02 250.4)

  3. Step 200

    200

    #C6DCF1

    oklch(88.5% 0.037 247)

  4. Step 300

    300

    #9EC5EB

    oklch(80.8% 0.068 248)

  5. Step 400

    400

    #66A6E1

    oklch(70.6% 0.109 247.7)

  6. Step 500

    500

    #368FD8

    oklch(63.1% 0.138 247.2)

  7. Step 600

    600

    #0077C4

    oklch(55.5% 0.148 247.6)

  8. Step 700

    700

    #0064A6

    oklch(49.1% 0.131 247.6)

  9. Step 800

    800

    #005289

    oklch(42.7% 0.113 247.3)

  10. Step 900

    900

    #0E446F

    oklch(37.7% 0.091 247.9)

  11. Step 950

    950 (this color)

    #042139

    oklch(24.1% 0.057 247.4)

Export this scale for Tailwind in the Tailwind colors tool

#042139 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)#16223A0.021
Deuteranopia (no green cones)#0E1D390.016
Tritanopia (no blue cones)#00272A0.041
Achromatopsia (no color)#2020200.057

Harmonies

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

Complementary

The opposite hue (180°).

  • #042139

    #042139

    oklch(24.1% 0.057 247.4)

  • #301A00

    #301A00

    oklch(24.2% 0.053 67.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #042139

    #042139

    oklch(24.1% 0.057 247.4)

  • #00242D

    #00242D

    oklch(24% 0.043 218.3)

  • #191C3A

    #191C3A

    oklch(24.1% 0.057 276.9)

Open the analogous palette in the generator

Split complementary

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

  • #042139

    #042139

    oklch(24.1% 0.057 247.4)

  • #36140A

    #36140A

    oklch(24.2% 0.058 37.1)

  • #261F00

    #261F00

    oklch(24% 0.05 96.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #042139

    #042139

    oklch(24.1% 0.057 247.4)

  • #35121A

    #35121A

    oklch(24% 0.057 8.1)

  • #182403

    #182403

    oklch(24.1% 0.057 127)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #042139

    #042139

    oklch(24.1% 0.057 247.4)

  • #301329

    #301329

    oklch(24% 0.058 337.2)

  • #301A00

    #301A00

    oklch(24.2% 0.053 67.9)

  • #002714

    #002714

    oklch(24% 0.057 157.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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