#040B20

Closest named color: Rich Navy (#001219). oklch(15.6% 0.046 264.8), rgb(4, 11, 32).

Aa

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

About this color

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

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

Values

HEX#040B20
RGBrgb(4, 11, 32)
HSLhsl(225, 78%, 7%)
OKLCHoklch(15.6% 0.046 264.8)

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

    #E5EAF5

    oklch(93.6% 0.016 266.3)

  3. Step 200

    200

    #CFD9EE

    oklch(88.4% 0.031 265.3)

  4. Step 300

    300

    #AFC1E5

    oklch(80.9% 0.055 264.2)

  5. Step 400

    400

    #86A0D8

    oklch(70.7% 0.088 265)

  6. Step 500

    500

    #6887CE

    oklch(63.1% 0.113 265.4)

  7. Step 600

    600

    #4F70BB

    oklch(55.6% 0.123 264.8)

  8. Step 700

    700

    #405EA1

    oklch(49.2% 0.113 264.4)

  9. Step 800

    800

    #354D82

    oklch(42.8% 0.093 264.4)

  10. Step 900

    900

    #2E4068

    oklch(37.6% 0.073 264.8)

  11. Step 950

    950 (this color)

    #040B20

    oklch(15.6% 0.046 264.8)

Export this scale for Tailwind in the Tailwind colors tool

#040B20 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)#020D210.008
Deuteranopia (no green cones)#000B200.010
Tritanopia (no blue cones)#0010130.039
Achromatopsia (no color)#0C0C0C0.046

Harmonies

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

Complementary

The opposite hue (180°).

  • #040B20

    #040B20

    oklch(15.6% 0.046 264.8)

  • #130B00

    #130B00

    oklch(15.7% 0.032 83.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040B20

    #040B20

    oklch(15.6% 0.046 264.8)

  • #000E18

    #000E18

    oklch(15.5% 0.033 235.2)

  • #0E071E

    #0E071E

    oklch(15.5% 0.048 294.7)

Open the analogous palette in the generator

Split complementary

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

  • #040B20

    #040B20

    oklch(15.6% 0.046 264.8)

  • #190700

    #190700

    oklch(15.6% 0.04 53.3)

  • #0C0E00

    #0C0E00

    oklch(15.6% 0.035 115.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040B20

    #040B20

    oklch(15.6% 0.046 264.8)

  • #1C0404

    #1C0404

    oklch(15.6% 0.045 24)

  • #011102

    #011102

    oklch(15.6% 0.045 144.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040B20

    #040B20

    oklch(15.6% 0.046 264.8)

  • #1B040E

    #1B040E

    oklch(15.8% 0.046 354.5)

  • #130B00

    #130B00

    oklch(15.7% 0.032 83.5)

  • #00100C

    #00100C

    oklch(15.5% 0.029 177.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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