#040A2B

Closest named color: Dark Navy (#000435). oklch(16.5% 0.068 267.9), rgb(4, 10, 43).

Aa

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

About this color

#040A2B is a very dark, muted blue. In OKLCH its lightness is 17%, its chroma 0.068 and its hue 268°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Navy (#000435), ΔE 0.029 away. White text reads best on it, at 19.38:1.

Hue familyBlues
Lightnessvery dark (17%)
Chromamuted (0.068)
Temperaturecool
Nearest nameDark Navy (#000435)
Black text1.08:1
White text19.38:1

Values

HEX#040A2B
RGBrgb(4, 10, 43)
HSLhsl(231, 83%, 9%)
OKLCHoklch(16.5% 0.068 267.9)

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 #040A2B 19.38:1 AAA Lc -107.4 Preferred for body text
Black text on #040A2B 1.08:1 Fails Lc 0.0 Not readable
#040A2B text on white 19.38:1 AAA Lc 105.4 Preferred for body text
#040A2B text on black 1.08: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

    #F2F5FD

    oklch(97% 0.011 269.6)

  2. Step 100

    100

    #E3EAFA

    oklch(93.6% 0.023 266.9)

  3. Step 200

    200

    #CCD9F8

    oklch(88.5% 0.045 267.4)

  4. Step 300

    300

    #AABFF5

    oklch(80.8% 0.08 268.1)

  5. Step 400

    400

    #7E9DF1

    oklch(70.8% 0.128 267.7)

  6. Step 500

    500

    #5F82EC

    oklch(63.2% 0.164 267.8)

  7. Step 600

    600

    #4768DA

    oklch(55.6% 0.178 268)

  8. Step 700

    700

    #3956BD

    oklch(49.1% 0.165 267.9)

  9. Step 800

    800

    #2F4799

    oklch(42.7% 0.137 267.9)

  10. Step 900

    900

    #293C7A

    oklch(37.6% 0.108 268.1)

  11. Step 950

    950 (this color)

    #040A2B

    oklch(16.5% 0.068 267.9)

Export this scale for Tailwind in the Tailwind colors tool

#040A2B 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)#000F2C0.016
Deuteranopia (no green cones)#000C2A0.010
Tritanopia (no blue cones)#0013190.053
Achromatopsia (no color)#0D0D0D0.068

Harmonies

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

Complementary

The opposite hue (180°).

  • #040A2B

    #040A2B

    oklch(16.5% 0.068 267.9)

  • #150D00

    #150D00

    oklch(16.5% 0.034 85.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040A2B

    #040A2B

    oklch(16.5% 0.068 267.9)

  • #00101C

    #00101C

    oklch(16.4% 0.037 238.2)

  • #130527

    #130527

    oklch(16.6% 0.068 298.2)

Open the analogous palette in the generator

Split complementary

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

  • #040A2B

    #040A2B

    oklch(16.5% 0.068 267.9)

  • #1B0900

    #1B0900

    oklch(16.6% 0.04 56.8)

  • #0D1000

    #0D1000

    oklch(16.4% 0.038 117.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040A2B

    #040A2B

    oklch(16.5% 0.068 267.9)

  • #250000

    #250000

    oklch(16.6% 0.068 29.2)

  • #001403

    #001403

    oklch(16.7% 0.049 147.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040A2B

    #040A2B

    oklch(16.5% 0.068 267.9)

  • #23000E

    #23000E

    oklch(16.6% 0.068 358.8)

  • #150D00

    #150D00

    oklch(16.5% 0.034 85.3)

  • #00130E

    #00130E

    oklch(16.7% 0.031 175.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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