#040D19

Closest named color: Rich Navy (#001219). oklch(15.6% 0.03 252.8), rgb(4, 13, 25).

Aa

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

About this color

#040D19 is a very dark, muted blue. In OKLCH its lightness is 16%, its chroma 0.030 and its hue 253°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Navy (#001219), ΔE 0.020 away. White text reads best on it, at 19.50:1.

Hue familyBlues
Lightnessvery dark (16%)
Chromamuted (0.030)
Temperaturecool
Nearest nameRich Navy (#001219)
Black text1.07:1
White text19.50:1

Values

HEX#040D19
RGBrgb(4, 13, 25)
HSLhsl(214, 72%, 6%)
OKLCHoklch(15.6% 0.03 252.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 #040D19 19.50:1 AAA Lc -107.6 Preferred for body text
Black text on #040D19 1.07:1 Fails Lc 0.0 Not readable
#040D19 text on white 19.50:1 AAA Lc 105.7 Preferred for body text
#040D19 text on black 1.07: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

    #F3F6F9

    oklch(97.2% 0.005 247.9)

  2. Step 100

    100

    #E5EAF1

    oklch(93.5% 0.011 256.7)

  3. Step 200

    200

    #D0DAE6

    oklch(88.4% 0.02 252.9)

  4. Step 300

    300

    #B1C3D8

    oklch(81% 0.036 252.3)

  5. Step 400

    400

    #88A3C4

    oklch(70.7% 0.057 253.7)

  6. Step 500

    500

    #6A8CB5

    oklch(63.1% 0.073 253.5)

  7. Step 600

    600

    #5176A1

    oklch(55.6% 0.079 252.9)

  8. Step 700

    700

    #41638A

    oklch(49.1% 0.074 252.7)

  9. Step 800

    800

    #365170

    oklch(42.7% 0.061 252.6)

  10. Step 900

    900

    #2F435A

    oklch(37.6% 0.047 252.5)

  11. Step 950

    950 (this color)

    #040D19

    oklch(15.6% 0.03 252.8)

Export this scale for Tailwind in the Tailwind colors tool

#040D19 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)#080E1A0.010
Deuteranopia (no green cones)#060B190.008
Tritanopia (no blue cones)#0010110.026
Achromatopsia (no color)#0C0C0C0.030

Harmonies

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

Complementary

The opposite hue (180°).

  • #040D19

    #040D19

    oklch(15.6% 0.03 252.8)

  • #140A01

    #140A01

    oklch(15.6% 0.03 72.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040D19

    #040D19

    oklch(15.6% 0.03 252.8)

  • #000F15

    #000F15

    oklch(15.6% 0.029 221.4)

  • #0B0B19

    #0B0B19

    oklch(15.8% 0.029 282.5)

Open the analogous palette in the generator

Split complementary

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

  • #040D19

    #040D19

    oklch(15.6% 0.03 252.8)

  • #170803

    #170803

    oklch(15.6% 0.031 45.6)

  • #0F0D01

    #0F0D01

    oklch(15.7% 0.029 102.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040D19

    #040D19

    oklch(15.6% 0.03 252.8)

  • #170709

    #170709

    oklch(15.6% 0.029 12.2)

  • #080F03

    #080F03

    oklch(15.6% 0.03 130.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040D19

    #040D19

    oklch(15.6% 0.03 252.8)

  • #150710

    #150710

    oklch(15.6% 0.031 341.7)

  • #140A01

    #140A01

    oklch(15.6% 0.03 72.2)

  • #011009

    #011009

    oklch(15.5% 0.03 165.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #040D19 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.