#00040F

Closest named color: Almost Black (#070D0D). oklch(10.7% 0.034 253.5), rgb(0, 4, 15).

Aa

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

About this color

#00040F is a very dark, muted blue. In OKLCH its lightness is 11%, its chroma 0.034 and its hue 254°. Its hue sits on the cool side of the wheel. The nearest named color is Almost Black (#070D0D), ΔE 0.054 away. White text reads best on it, at 20.50:1.

Hue familyBlues
Lightnessvery dark (11%)
Chromamuted (0.034)
Temperaturecool
Nearest nameAlmost Black (#070D0D)
Black text1.02:1
White text20.50:1

Values

HEX#00040F
RGBrgb(0, 4, 15)
HSLhsl(224, 100%, 3%)
OKLCHoklch(10.7% 0.034 253.5)

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 #00040F 20.50:1 AAA Lc -107.8 Preferred for body text
Black text on #00040F 1.02:1 Fails Lc 0.0 Not readable
#00040F text on white 20.50:1 AAA Lc 106.0 Preferred for body text
#00040F text on black 1.02: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

    #CFDAE8

    oklch(88.4% 0.023 254.4)

  4. Step 300

    300

    #AFC3DA

    oklch(80.9% 0.039 252)

  5. Step 400

    400

    #85A3C8

    oklch(70.6% 0.064 253.9)

  6. Step 500

    500

    #668CBA

    oklch(63% 0.082 253.7)

  7. Step 600

    600

    #4D76A6

    oklch(55.7% 0.088 253.2)

  8. Step 700

    700

    #3E638E

    oklch(49.1% 0.081 253.1)

  9. Step 800

    800

    #335174

    oklch(42.8% 0.069 253.1)

  10. Step 900

    900

    #2D435D

    oklch(37.7% 0.053 253.2)

  11. Step 950

    950 (this color)

    #00040F

    oklch(10.7% 0.034 253.5)

Export this scale for Tailwind in the Tailwind colors tool

#00040F 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)#01050F0.009
Deuteranopia (no green cones)#00030F0.007
Tritanopia (no blue cones)#0006080.024
Achromatopsia (no color)#0404040.034

Harmonies

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

Complementary

The opposite hue (180°).

  • #00040F

    #00040F

    oklch(10.7% 0.034 253.5)

  • #080300

    #080300

    oklch(10.6% 0.023 70.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #00040F

    #00040F

    oklch(10.7% 0.034 253.5)

  • #000508

    #000508

    oklch(10.7% 0.02 222.4)

  • #03030F

    #03030F

    oklch(10.8% 0.033 279.4)

Open the analogous palette in the generator

Split complementary

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

  • #00040F

    #00040F

    oklch(10.7% 0.034 253.5)

  • #0C0200

    #0C0200

    oklch(11% 0.03 47.2)

  • #050400

    #050400

    oklch(10.6% 0.022 101.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #00040F

    #00040F

    oklch(10.7% 0.034 253.5)

  • #0D0102

    #0D0102

    oklch(10.8% 0.034 15.1)

  • #020600

    #020600

    oklch(11% 0.031 132.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #00040F

    #00040F

    oklch(10.7% 0.034 253.5)

  • #0B0106

    #0B0106

    oklch(10.7% 0.035 344.9)

  • #080300

    #080300

    oklch(10.6% 0.023 70.5)

  • #000603

    #000603

    oklch(10.8% 0.023 165.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #00040F 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.