#040D22

Closest named color: Rich Navy (#001219). oklch(16.4% 0.047 262.3), rgb(4, 13, 34).

Aa

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

About this color

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

Hue familyBlues
Lightnessvery dark (16%)
Chromamuted (0.047)
Temperaturecool
Nearest nameRich Navy (#001219)
Black text1.08:1
White text19.34:1

Values

HEX#040D22
RGBrgb(4, 13, 34)
HSLhsl(222, 79%, 7%)
OKLCHoklch(16.4% 0.047 262.3)

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 #040D22 19.34:1 AAA Lc -107.5 Preferred for body text
Black text on #040D22 1.08:1 Fails Lc 0.0 Not readable
#040D22 text on white 19.34:1 AAA Lc 105.5 Preferred for body text
#040D22 text on black 1.08: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

    #F3F6FB

    oklch(97.2% 0.007 260.7)

  2. Step 100

    100

    #E4EAF5

    oklch(93.6% 0.016 262.8)

  3. Step 200

    200

    #CEDAEE

    oklch(88.5% 0.03 260.7)

  4. Step 300

    300

    #AEC1E5

    oklch(80.9% 0.055 263.2)

  5. Step 400

    400

    #83A1D8

    oklch(70.7% 0.088 262.2)

  6. Step 500

    500

    #6488CE

    oklch(63% 0.114 262.8)

  7. Step 600

    600

    #4B71BB

    oklch(55.6% 0.123 262.5)

  8. Step 700

    700

    #3C5EA1

    oklch(49% 0.115 262.6)

  9. Step 800

    800

    #324D83

    oklch(42.7% 0.096 262.9)

  10. Step 900

    900

    #2C4169

    oklch(37.8% 0.074 262.4)

  11. Step 950

    950 (this color)

    #040D22

    oklch(16.4% 0.047 262.3)

Export this scale for Tailwind in the Tailwind colors tool

#040D22 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)#040F230.007
Deuteranopia (no green cones)#010C220.008
Tritanopia (no blue cones)#0012150.038
Achromatopsia (no color)#0E0E0E0.047

Harmonies

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

Complementary

The opposite hue (180°).

  • #040D22

    #040D22

    oklch(16.4% 0.047 262.3)

  • #150C00

    #150C00

    oklch(16.3% 0.034 81.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040D22

    #040D22

    oklch(16.4% 0.047 262.3)

  • #00101A

    #00101A

    oklch(16.3% 0.034 233.4)

  • #0F0920

    #0F0920

    oklch(16.3% 0.047 292.5)

Open the analogous palette in the generator

Split complementary

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

  • #040D22

    #040D22

    oklch(16.4% 0.047 262.3)

  • #1C0800

    #1C0800

    oklch(16.5% 0.042 52.2)

  • #0F0F00

    #0F0F00

    oklch(16.3% 0.036 109.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040D22

    #040D22

    oklch(16.4% 0.047 262.3)

  • #1E0505

    #1E0505

    oklch(16.4% 0.046 23.6)

  • #021302

    #021302

    oklch(16.4% 0.047 143.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040D22

    #040D22

    oklch(16.4% 0.047 262.3)

  • #1C0510

    #1C0510

    oklch(16.4% 0.046 352.2)

  • #150C00

    #150C00

    oklch(16.3% 0.034 81.5)

  • #00120D

    #00120D

    oklch(16.3% 0.031 174.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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