#040C1C

Closest named color: Rich Navy (#001219). oklch(15.6% 0.037 260), rgb(4, 12, 28).

Aa

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

About this color

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

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

Values

HEX#040C1C
RGBrgb(4, 12, 28)
HSLhsl(220, 75%, 6%)
OKLCHoklch(15.6% 0.037 260)

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

    #E5EAF3

    oklch(93.6% 0.013 262.4)

  3. Step 200

    200

    #D0DAEA

    oklch(88.6% 0.025 259.8)

  4. Step 300

    300

    #B0C2DE

    oklch(80.9% 0.044 259.2)

  5. Step 400

    400

    #87A2CD

    oklch(70.8% 0.07 259.6)

  6. Step 500

    500

    #698AC0

    oklch(63.1% 0.09 260)

  7. Step 600

    600

    #5173AD

    oklch(55.6% 0.099 260.6)

  8. Step 700

    700

    #416194

    oklch(49.2% 0.091 259.4)

  9. Step 800

    800

    #364F78

    oklch(42.7% 0.075 259.9)

  10. Step 900

    900

    #2F4261

    oklch(37.8% 0.059 259.9)

  11. Step 950

    950 (this color)

    #040C1C

    oklch(15.6% 0.037 260)

Export this scale for Tailwind in the Tailwind colors tool

#040C1C 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)#060D1D0.006
Deuteranopia (no green cones)#030B1C0.005
Tritanopia (no blue cones)#0010120.032
Achromatopsia (no color)#0C0C0C0.037

Harmonies

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

Complementary

The opposite hue (180°).

  • #040C1C

    #040C1C

    oklch(15.6% 0.037 260)

  • #130A00

    #130A00

    oklch(15.4% 0.032 79.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040C1C

    #040C1C

    oklch(15.6% 0.037 260)

  • #000F17

    #000F17

    oklch(15.7% 0.031 228.4)

  • #0C091B

    #0C091B

    oklch(15.5% 0.038 289)

Open the analogous palette in the generator

Split complementary

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

  • #040C1C

    #040C1C

    oklch(15.6% 0.037 260)

  • #180701

    #180701

    oklch(15.5% 0.036 49.9)

  • #0D0D00

    #0D0D00

    oklch(15.4% 0.034 109.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040C1C

    #040C1C

    oklch(15.6% 0.037 260)

  • #1A0606

    #1A0606

    oklch(15.8% 0.037 22.2)

  • #041003

    #041003

    oklch(15.6% 0.036 141.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040C1C

    #040C1C

    oklch(15.6% 0.037 260)

  • #18060F

    #18060F

    oklch(15.8% 0.037 349.9)

  • #130A00

    #130A00

    oklch(15.4% 0.032 79.3)

  • #00100A

    #00100A

    oklch(15.4% 0.03 170.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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