#040C19

Closest named color: Rich Navy (#001219). oklch(15.3% 0.032 256.4), rgb(4, 12, 25).

Aa

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

About this color

#040C19 is a very dark, muted blue. In OKLCH its lightness is 15%, its chroma 0.032 and its hue 256°. Its hue sits on the cool side of the wheel. The nearest named color is Rich Navy (#001219), ΔE 0.024 away. White text reads best on it, at 19.59:1.

Hue familyBlues
Lightnessvery dark (15%)
Chromamuted (0.032)
Temperaturecool
Nearest nameRich Navy (#001219)
Black text1.07:1
White text19.59:1

Values

HEX#040C19
RGBrgb(4, 12, 25)
HSLhsl(217, 72%, 6%)
OKLCHoklch(15.3% 0.032 256.4)

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

    #D0DAE7

    oklch(88.5% 0.021 254.9)

  4. Step 300

    300

    #B1C2D9

    oklch(80.8% 0.038 256)

  5. Step 400

    400

    #89A3C6

    oklch(70.8% 0.059 255.9)

  6. Step 500

    500

    #6B8BB8

    oklch(63% 0.077 257)

  7. Step 600

    600

    #5375A4

    oklch(55.7% 0.083 256.6)

  8. Step 700

    700

    #43628C

    oklch(49.1% 0.077 256.2)

  9. Step 800

    800

    #375072

    oklch(42.7% 0.065 256.3)

  10. Step 900

    900

    #30435C

    oklch(37.8% 0.049 255.5)

  11. Step 950

    950 (this color)

    #040C19

    oklch(15.3% 0.032 256.4)

Export this scale for Tailwind in the Tailwind colors tool

#040C19 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)#070D1A0.008
Deuteranopia (no green cones)#050B190.004
Tritanopia (no blue cones)#000F110.026
Achromatopsia (no color)#0C0C0C0.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #040C19

    #040C19

    oklch(15.3% 0.032 256.4)

  • #130A00

    #130A00

    oklch(15.4% 0.032 79.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040C19

    #040C19

    oklch(15.3% 0.032 256.4)

  • #000E15

    #000E15

    oklch(15.2% 0.029 225.9)

  • #0B0919

    #0B0919

    oklch(15.2% 0.034 287.5)

Open the analogous palette in the generator

Split complementary

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

  • #040C19

    #040C19

    oklch(15.3% 0.032 256.4)

  • #170702

    #170702

    oklch(15.3% 0.033 46.2)

  • #0E0D00

    #0E0D00

    oklch(15.5% 0.033 106.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040C19

    #040C19

    oklch(15.3% 0.032 256.4)

  • #170607

    #170607

    oklch(15.2% 0.032 17.1)

  • #060F03

    #060F03

    oklch(15.4% 0.032 136.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040C19

    #040C19

    oklch(15.3% 0.032 256.4)

  • #15060F

    #15060F

    oklch(15.2% 0.033 343.9)

  • #130A00

    #130A00

    oklch(15.4% 0.032 79.3)

  • #001009

    #001009

    oklch(15.4% 0.032 166.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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