#040B22

Closest named color: Rich Navy (#001219). oklch(15.8% 0.05 265.5), rgb(4, 11, 34).

Aa

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

About this color

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

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

Values

HEX#040B22
RGBrgb(4, 11, 34)
HSLhsl(226, 79%, 7%)
OKLCHoklch(15.8% 0.05 265.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 #040B22 19.51:1 AAA Lc -107.6 Preferred for body text
Black text on #040B22 1.07:1 Fails Lc 0.0 Not readable
#040B22 text on white 19.51:1 AAA Lc 105.6 Preferred for body text
#040B22 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

    #E4EAF6

    oklch(93.6% 0.017 264.5)

  3. Step 200

    200

    #CFD9F0

    oklch(88.5% 0.033 266.9)

  4. Step 300

    300

    #AEC1E8

    oklch(81% 0.059 264.6)

  5. Step 400

    400

    #849FDC

    oklch(70.6% 0.095 265.7)

  6. Step 500

    500

    #6687D3

    oklch(63.2% 0.121 265.3)

  7. Step 600

    600

    #4E6FC0

    oklch(55.6% 0.132 265.6)

  8. Step 700

    700

    #3F5CA6

    oklch(49% 0.123 265.9)

  9. Step 800

    800

    #344C86

    oklch(42.7% 0.101 265.4)

  10. Step 900

    900

    #2D406B

    oklch(37.7% 0.078 264.9)

  11. Step 950

    950 (this color)

    #040B22

    oklch(15.8% 0.05 265.5)

Export this scale for Tailwind in the Tailwind colors tool

#040B22 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)#010E230.011
Deuteranopia (no green cones)#000B220.010
Tritanopia (no blue cones)#0010140.040
Achromatopsia (no color)#0C0C0C0.050

Harmonies

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

Complementary

The opposite hue (180°).

  • #040B22

    #040B22

    oklch(15.8% 0.05 265.5)

  • #130C00

    #130C00

    oklch(15.9% 0.033 87.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040B22

    #040B22

    oklch(15.8% 0.05 265.5)

  • #000F19

    #000F19

    oklch(15.9% 0.033 234.3)

  • #0F0720

    #0F0720

    oklch(15.8% 0.051 295)

Open the analogous palette in the generator

Split complementary

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

  • #040B22

    #040B22

    oklch(15.8% 0.05 265.5)

  • #190800

    #190800

    oklch(15.9% 0.039 56.9)

  • #0C0F00

    #0C0F00

    oklch(15.9% 0.037 117.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040B22

    #040B22

    oklch(15.8% 0.05 265.5)

  • #1E0303

    #1E0303

    oklch(15.8% 0.051 25.2)

  • #001202

    #001202

    oklch(15.9% 0.048 146.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040B22

    #040B22

    oklch(15.8% 0.05 265.5)

  • #1C030E

    #1C030E

    oklch(15.8% 0.051 354.5)

  • #130C00

    #130C00

    oklch(15.9% 0.033 87.5)

  • #00110C

    #00110C

    oklch(15.9% 0.03 174.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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