#040D18

Closest named color: Rich Navy (#001219). oklch(15.6% 0.028 250.9), rgb(4, 13, 24).

Aa

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

About this color

#040D18 is a very dark close to neutral grey. In OKLCH its lightness is 16%, its chroma 0.028. It has too little chroma to lean warm or cool. The nearest named color is Rich Navy (#001219), ΔE 0.020 away. White text reads best on it, at 19.51:1.

Hue familyNeutrals
Lightnessvery dark (16%)
Chromaclose to neutral grey (0.028)
Temperatureneutral
Nearest nameRich Navy (#001219)
Black text1.07:1
White text19.51:1

Values

HEX#040D18
RGBrgb(4, 13, 24)
HSLhsl(213, 71%, 5%)
OKLCHoklch(15.6% 0.028 250.9)

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 #040D18 19.51:1 AAA Lc -107.6 Preferred for body text
Black text on #040D18 1.07:1 Fails Lc 0.0 Not readable
#040D18 text on white 19.51:1 AAA Lc 105.7 Preferred for body text
#040D18 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

    #F3F6F8

    oklch(97.1% 0.004 236.5)

  2. Step 100

    100

    #E5EAF0

    oklch(93.5% 0.01 252.8)

  3. Step 200

    200

    #D0DAE5

    oklch(88.4% 0.019 250.6)

  4. Step 300

    300

    #B1C3D6

    oklch(81% 0.033 249.7)

  5. Step 400

    400

    #88A4C2

    oklch(70.8% 0.054 250.4)

  6. Step 500

    500

    #6A8DB2

    oklch(63.1% 0.068 250.3)

  7. Step 600

    600

    #51769E

    oklch(55.5% 0.075 251.2)

  8. Step 700

    700

    #426387

    oklch(49% 0.07 251.4)

  9. Step 800

    800

    #37516E

    oklch(42.7% 0.058 251.9)

  10. Step 900

    900

    #2F4359

    oklch(37.6% 0.046 251.4)

  11. Step 950

    950 (this color)

    #040D18

    oklch(15.6% 0.028 250.9)

Export this scale for Tailwind in the Tailwind colors tool

#040D18 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)#080E180.010
Deuteranopia (no green cones)#060B180.008
Tritanopia (no blue cones)#0010110.024
Achromatopsia (no color)#0C0C0C0.028

Harmonies

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

Complementary

The opposite hue (180°).

  • #040D18

    #040D18

    oklch(15.6% 0.028 250.9)

  • #140A01

    #140A01

    oklch(15.6% 0.03 72.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040D18

    #040D18

    oklch(15.6% 0.028 250.9)

  • #000F15

    #000F15

    oklch(15.6% 0.029 221.4)

  • #0A0B18

    #0A0B18

    oklch(15.6% 0.028 279.3)

Open the analogous palette in the generator

Split complementary

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

  • #040D18

    #040D18

    oklch(15.6% 0.028 250.9)

  • #160804

    #160804

    oklch(15.5% 0.028 41.7)

  • #0F0D01

    #0F0D01

    oklch(15.7% 0.029 102.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040D18

    #040D18

    oklch(15.6% 0.028 250.9)

  • #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.

  • #040D18

    #040D18

    oklch(15.6% 0.028 250.9)

  • #140710

    #140710

    oklch(15.4% 0.029 339.2)

  • #140A01

    #140A01

    oklch(15.6% 0.03 72.2)

  • #021008

    #021008

    oklch(15.5% 0.029 160)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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