#040B24

Closest named color: Rich Navy (#001219). oklch(16% 0.054 266.1), rgb(4, 11, 36).

Aa

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

About this color

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

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

Values

HEX#040B24
RGBrgb(4, 11, 36)
HSLhsl(227, 80%, 8%)
OKLCHoklch(16% 0.054 266.1)

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 #040B24 19.47:1 AAA Lc -107.5 Preferred for body text
Black text on #040B24 1.07:1 Fails Lc 0.0 Not readable
#040B24 text on white 19.47:1 AAA Lc 105.6 Preferred for body text
#040B24 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

    #F3F5FB

    oklch(97% 0.008 271.3)

  2. Step 100

    100

    #E4EAF7

    oklch(93.6% 0.019 266)

  3. Step 200

    200

    #CED9F1

    oklch(88.4% 0.035 266)

  4. Step 300

    300

    #ADC0EB

    oklch(80.8% 0.065 266.3)

  5. Step 400

    400

    #839FE1

    oklch(70.7% 0.102 266.2)

  6. Step 500

    500

    #6486D8

    oklch(63.1% 0.13 265.8)

  7. Step 600

    600

    #4C6EC5

    oklch(55.6% 0.141 265.9)

  8. Step 700

    700

    #3D5BAB

    oklch(49% 0.133 266.2)

  9. Step 800

    800

    #334B8A

    oklch(42.7% 0.108 266.2)

  10. Step 900

    900

    #2C3F6E

    oklch(37.6% 0.084 265.9)

  11. Step 950

    950 (this color)

    #040B24

    oklch(16% 0.054 266.1)

Export this scale for Tailwind in the Tailwind colors tool

#040B24 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)#000E250.012
Deuteranopia (no green cones)#000B240.010
Tritanopia (no blue cones)#0011150.044
Achromatopsia (no color)#0D0D0D0.054

Harmonies

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

Complementary

The opposite hue (180°).

  • #040B24

    #040B24

    oklch(16% 0.054 266.1)

  • #140C00

    #140C00

    oklch(16.1% 0.033 84.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040B24

    #040B24

    oklch(16% 0.054 266.1)

  • #000F1A

    #000F1A

    oklch(16% 0.035 236.8)

  • #100721

    #100721

    oklch(16% 0.053 296.2)

Open the analogous palette in the generator

Split complementary

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

  • #040B24

    #040B24

    oklch(16% 0.054 266.1)

  • #1A0800

    #1A0800

    oklch(16.1% 0.04 55.2)

  • #0D0F00

    #0D0F00

    oklch(16.1% 0.036 115)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040B24

    #040B24

    oklch(16% 0.054 266.1)

  • #200303

    #200303

    oklch(16.2% 0.054 25.5)

  • #001202

    #001202

    oklch(15.9% 0.048 146.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040B24

    #040B24

    oklch(16% 0.054 266.1)

  • #1E030E

    #1E030E

    oklch(16.2% 0.053 356.9)

  • #140C00

    #140C00

    oklch(16.1% 0.033 84.4)

  • #00110D

    #00110D

    oklch(15.9% 0.029 178)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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