#040E1A

Closest named color: Rich Navy (#001219). oklch(16% 0.031 251), rgb(4, 14, 26).

Aa

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

About this color

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

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

Values

HEX#040E1A
RGBrgb(4, 14, 26)
HSLhsl(213, 73%, 6%)
OKLCHoklch(16% 0.031 251)

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 #040E1A 19.39:1 AAA Lc -107.5 Preferred for body text
Black text on #040E1A 1.08:1 Fails Lc 0.0 Not readable
#040E1A text on white 19.39:1 AAA Lc 105.6 Preferred for body text
#040E1A 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

    #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

    #B0C3D8

    oklch(80.9% 0.036 250.9)

  5. Step 400

    400

    #86A4C4

    oklch(70.8% 0.058 250.3)

  6. Step 500

    500

    #678DB5

    oklch(63.1% 0.074 250.3)

  7. Step 600

    600

    #4E76A1

    oklch(55.5% 0.081 251.1)

  8. Step 700

    700

    #3F638A

    oklch(49% 0.075 251.4)

  9. Step 800

    800

    #345170

    oklch(42.6% 0.062 251)

  10. Step 900

    900

    #2E435B

    oklch(37.6% 0.049 252.4)

  11. Step 950

    950 (this color)

    #040E1A

    oklch(16% 0.031 251)

Export this scale for Tailwind in the Tailwind colors tool

#040E1A 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)#090F1B0.011
Deuteranopia (no green cones)#060C1A0.008
Tritanopia (no blue cones)#0011120.026
Achromatopsia (no color)#0D0D0D0.031

Harmonies

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

Complementary

The opposite hue (180°).

  • #040E1A

    #040E1A

    oklch(16% 0.031 251)

  • #150B01

    #150B01

    oklch(16% 0.031 73.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040E1A

    #040E1A

    oklch(16% 0.031 251)

  • #001016

    #001016

    oklch(16% 0.029 220.6)

  • #0B0C1A

    #0B0C1A

    oklch(16.2% 0.029 279.4)

Open the analogous palette in the generator

Split complementary

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

  • #040E1A

    #040E1A

    oklch(16% 0.031 251)

  • #180804

    #180804

    oklch(15.9% 0.031 39.4)

  • #100E01

    #100E01

    oklch(16.1% 0.031 103.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040E1A

    #040E1A

    oklch(16% 0.031 251)

  • #18080A

    #18080A

    oklch(16.1% 0.029 12.4)

  • #091003

    #091003

    oklch(16.1% 0.031 129.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040E1A

    #040E1A

    oklch(16% 0.031 251)

  • #160811

    #160811

    oklch(16.1% 0.03 341.8)

  • #150B01

    #150B01

    oklch(16% 0.031 73.8)

  • #021109

    #021109

    oklch(15.9% 0.03 161.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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