#040D1C

Closest named color: Rich Navy (#001219). oklch(15.9% 0.036 257.3), rgb(4, 13, 28).

Aa

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

About this color

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

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

Values

HEX#040D1C
RGBrgb(4, 13, 28)
HSLhsl(218, 75%, 6%)
OKLCHoklch(15.9% 0.036 257.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 #040D1C 19.45:1 AAA Lc -107.6 Preferred for body text
Black text on #040D1C 1.07:1 Fails Lc 0.0 Not readable
#040D1C text on white 19.45:1 AAA Lc 105.6 Preferred for body text
#040D1C 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

    #E5EAF2

    oklch(93.6% 0.012 259.8)

  3. Step 200

    200

    #D0DAE9

    oklch(88.5% 0.023 258.4)

  4. Step 300

    300

    #B0C2DC

    oklch(80.9% 0.042 257.5)

  5. Step 400

    400

    #86A2CB

    oklch(70.6% 0.068 257.8)

  6. Step 500

    500

    #688BBE

    oklch(63.1% 0.087 257.7)

  7. Step 600

    600

    #4F74AA

    oklch(55.5% 0.095 257.8)

  8. Step 700

    700

    #406292

    oklch(49.2% 0.087 257.1)

  9. Step 800

    800

    #355076

    oklch(42.8% 0.072 257)

  10. Step 900

    900

    #2E425F

    oklch(37.6% 0.056 257.6)

  11. Step 950

    950 (this color)

    #040D1C

    oklch(15.9% 0.036 257.3)

Export this scale for Tailwind in the Tailwind colors tool

#040D1C 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)#070E1D0.008
Deuteranopia (no green cones)#040C1C0.004
Tritanopia (no blue cones)#0010130.027
Achromatopsia (no color)#0D0D0D0.036

Harmonies

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

Complementary

The opposite hue (180°).

  • #040D1C

    #040D1C

    oklch(15.9% 0.036 257.3)

  • #150B00

    #150B00

    oklch(16% 0.033 77.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040D1C

    #040D1C

    oklch(15.9% 0.036 257.3)

  • #000F17

    #000F17

    oklch(15.7% 0.031 228.4)

  • #0C0A1B

    #0C0A1B

    oklch(15.8% 0.035 287)

Open the analogous palette in the generator

Split complementary

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

  • #040D1C

    #040D1C

    oklch(15.9% 0.036 257.3)

  • #190802

    #190802

    oklch(16% 0.035 47.7)

  • #0F0E00

    #0F0E00

    oklch(16% 0.034 106.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040D1C

    #040D1C

    oklch(15.9% 0.036 257.3)

  • #1A0608

    #1A0608

    oklch(15.9% 0.037 14.9)

  • #061003

    #061003

    oklch(15.8% 0.034 136.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040D1C

    #040D1C

    oklch(15.9% 0.036 257.3)

  • #180610

    #180610

    oklch(15.8% 0.038 346.9)

  • #150B00

    #150B00

    oklch(16% 0.033 77.5)

  • #00110A

    #00110A

    oklch(15.8% 0.032 167.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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