#040E32

Closest named color: Dark Navy (#000435). oklch(18.3% 0.073 265.7), rgb(4, 14, 50).

Aa

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

About this color

#040E32 is a very dark, moderately saturated blue. In OKLCH its lightness is 18%, its chroma 0.073 and its hue 266°. Its hue sits on the cool side of the wheel. The nearest named color is Dark Navy (#000435), ΔE 0.032 away. White text reads best on it, at 18.85:1.

Hue familyBlues
Lightnessvery dark (18%)
Chromamoderately saturated (0.073)
Temperaturecool
Nearest nameDark Navy (#000435)
Black text1.11:1
White text18.85:1

Values

HEX#040E32
RGBrgb(4, 14, 50)
HSLhsl(227, 85%, 11%)
OKLCHoklch(18.3% 0.073 265.7)

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 #040E32 18.85:1 AAA Lc -107.2 Preferred for body text
Black text on #040E32 1.11:1 Fails Lc 0.0 Not readable
#040E32 text on white 18.85:1 AAA Lc 105.1 Preferred for body text
#040E32 text on black 1.11: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

    #F2F5FE

    oklch(97% 0.012 271.3)

  2. Step 100

    100

    #E2EAFB

    oklch(93.6% 0.025 265.6)

  3. Step 200

    200

    #CAD9FA

    oklch(88.5% 0.048 266)

  4. Step 300

    300

    #A6C0FA

    oklch(80.9% 0.087 265.8)

  5. Step 400

    400

    #779DF7

    oklch(70.7% 0.139 265.7)

  6. Step 500

    500

    #5581F3

    oklch(63% 0.177 265.7)

  7. Step 600

    600

    #3C68E2

    oklch(55.6% 0.192 265.5)

  8. Step 700

    700

    #2F55C4

    oklch(49% 0.179 265.7)

  9. Step 800

    800

    #27479F

    oklch(42.8% 0.148 265.4)

  10. Step 900

    900

    #243C7E

    oklch(37.6% 0.116 266)

  11. Step 950

    950 (this color)

    #040E32

    oklch(18.3% 0.073 265.7)

Export this scale for Tailwind in the Tailwind colors tool

#040E32 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)#0014330.019
Deuteranopia (no green cones)#000F310.008
Tritanopia (no blue cones)#00171E0.056
Achromatopsia (no color)#1111110.073

Harmonies

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

Complementary

The opposite hue (180°).

  • #040E32

    #040E32

    oklch(18.3% 0.073 265.7)

  • #1A1100

    #1A1100

    oklch(18.4% 0.038 85.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040E32

    #040E32

    oklch(18.3% 0.073 265.7)

  • #001521

    #001521

    oklch(18.4% 0.039 234.1)

  • #16082E

    #16082E

    oklch(18.4% 0.072 295.4)

Open the analogous palette in the generator

Split complementary

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

  • #040E32

    #040E32

    oklch(18.3% 0.073 265.7)

  • #210C00

    #210C00

    oklch(18.4% 0.045 55.9)

  • #121400

    #121400

    oklch(18.3% 0.041 114.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040E32

    #040E32

    oklch(18.3% 0.073 265.7)

  • #2B0002

    #2B0002

    oklch(18.2% 0.074 24.9)

  • #001803

    #001803

    oklch(18.2% 0.055 146.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040E32

    #040E32

    oklch(18.3% 0.073 265.7)

  • #280113

    #280113

    oklch(18.3% 0.071 356.3)

  • #1A1100

    #1A1100

    oklch(18.4% 0.038 85.8)

  • #001712

    #001712

    oklch(18.3% 0.034 177.3)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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