#040F35

Closest named color: Navy Blue (#001146). oklch(18.9% 0.077 265.3), rgb(4, 15, 53).

Aa

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

About this color

#040F35 is a very dark, moderately saturated blue. In OKLCH its lightness is 19%, its chroma 0.077 and its hue 265°. Its hue sits on the cool side of the wheel. The nearest named color is Navy Blue (#001146), ΔE 0.034 away. White text reads best on it, at 18.66:1.

Hue familyBlues
Lightnessvery dark (19%)
Chromamoderately saturated (0.077)
Temperaturecool
Nearest nameNavy Blue (#001146)
Black text1.12:1
White text18.66:1

Values

HEX#040F35
RGBrgb(4, 15, 53)
HSLhsl(227, 86%, 11%)
OKLCHoklch(18.9% 0.077 265.3)

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 #040F35 18.66:1 AAA Lc -107.1 Preferred for body text
Black text on #040F35 1.12:1 Fails Lc 0.0 Not readable
#040F35 text on white 18.66:1 AAA Lc 105.0 Preferred for body text
#040F35 text on black 1.12: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

    #F1F5FE

    oklch(97% 0.013 266.7)

  2. Step 100

    100

    #E1EAFC

    oklch(93.6% 0.026 264.4)

  3. Step 200

    200

    #C9D9FB

    oklch(88.4% 0.05 265.4)

  4. Step 300

    300

    #A4C0FC

    oklch(80.9% 0.091 265)

  5. Step 400

    400

    #749DFB

    oklch(70.7% 0.145 265.1)

  6. Step 500

    500

    #5281F8

    oklch(63.1% 0.185 265.3)

  7. Step 600

    600

    #3866E7

    oklch(55.5% 0.202 265.3)

  8. Step 700

    700

    #2C54C9

    oklch(49.1% 0.188 265.5)

  9. Step 800

    800

    #2546A2

    oklch(42.8% 0.154 265.3)

  10. Step 900

    900

    #223C81

    oklch(37.8% 0.121 265.4)

  11. Step 950

    950 (this color)

    #040F35

    oklch(18.9% 0.077 265.3)

Export this scale for Tailwind in the Tailwind colors tool

#040F35 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)#0015360.018
Deuteranopia (no green cones)#0010340.007
Tritanopia (no blue cones)#0019200.059
Achromatopsia (no color)#1212120.077

Harmonies

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

Complementary

The opposite hue (180°).

  • #040F35

    #040F35

    oklch(18.9% 0.077 265.3)

  • #1B1200

    #1B1200

    oklch(18.9% 0.039 86.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040F35

    #040F35

    oklch(18.9% 0.077 265.3)

  • #001623

    #001623

    oklch(18.9% 0.04 235.5)

  • #170831

    #170831

    oklch(18.8% 0.077 294.8)

Open the analogous palette in the generator

Split complementary

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

  • #040F35

    #040F35

    oklch(18.9% 0.077 265.3)

  • #230D00

    #230D00

    oklch(19% 0.047 55.7)

  • #131600

    #131600

    oklch(19% 0.044 116)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040F35

    #040F35

    oklch(18.9% 0.077 265.3)

  • #2E0002

    #2E0002

    oklch(19% 0.077 25.4)

  • #001A03

    #001A03

    oklch(18.9% 0.058 145.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040F35

    #040F35

    oklch(18.9% 0.077 265.3)

  • #2B0015

    #2B0015

    oklch(18.9% 0.077 355.3)

  • #1B1200

    #1B1200

    oklch(18.9% 0.039 86.5)

  • #001913

    #001913

    oklch(19.1% 0.036 175.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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