#040E31

Closest named color: Dark Navy (#000435). oklch(18.2% 0.072 265.5), rgb(4, 14, 49).

Aa

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

About this color

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

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

Values

HEX#040E31
RGBrgb(4, 14, 49)
HSLhsl(227, 85%, 10%)
OKLCHoklch(18.2% 0.072 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 #040E31 18.87:1 AAA Lc -107.2 Preferred for body text
Black text on #040E31 1.11:1 Fails Lc 0.0 Not readable
#040E31 text on white 18.87:1 AAA Lc 105.1 Preferred for body text
#040E31 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

    #F2F5FD

    oklch(97% 0.011 269.6)

  2. Step 100

    100

    #E2EAFB

    oklch(93.6% 0.025 265.6)

  3. Step 200

    200

    #CAD9F9

    oklch(88.4% 0.047 265.5)

  4. Step 300

    300

    #A6C0F8

    oklch(80.8% 0.085 265.2)

  5. Step 400

    400

    #789DF5

    oklch(70.6% 0.136 265.8)

  6. Step 500

    500

    #5682F1

    oklch(63.1% 0.173 265.5)

  7. Step 600

    600

    #3D68E0

    oklch(55.5% 0.189 265.6)

  8. Step 700

    700

    #3056C2

    oklch(49.1% 0.175 265.6)

  9. Step 800

    800

    #28479D

    oklch(42.7% 0.145 265.6)

  10. Step 900

    900

    #243D7D

    oklch(37.8% 0.113 265.3)

  11. Step 950

    950 (this color)

    #040E31

    oklch(18.2% 0.072 265.5)

Export this scale for Tailwind in the Tailwind colors tool

#040E31 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)#0013320.016
Deuteranopia (no green cones)#000F300.008
Tritanopia (no blue cones)#00171D0.056
Achromatopsia (no color)#1111110.072

Harmonies

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

Complementary

The opposite hue (180°).

  • #040E31

    #040E31

    oklch(18.2% 0.072 265.5)

  • #191000

    #191000

    oklch(18% 0.037 85.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040E31

    #040E31

    oklch(18.2% 0.072 265.5)

  • #001421

    #001421

    oklch(18.1% 0.04 237)

  • #16082D

    #16082D

    oklch(18.3% 0.071 296.1)

Open the analogous palette in the generator

Split complementary

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

  • #040E31

    #040E31

    oklch(18.2% 0.072 265.5)

  • #200C00

    #200C00

    oklch(18.2% 0.044 57.4)

  • #111400

    #111400

    oklch(18.2% 0.042 116.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040E31

    #040E31

    oklch(18.2% 0.072 265.5)

  • #2A0102

    #2A0102

    oklch(18.2% 0.071 26)

  • #001802

    #001802

    oklch(18.2% 0.057 145)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040E31

    #040E31

    oklch(18.2% 0.072 265.5)

  • #280113

    #280113

    oklch(18.3% 0.071 356.3)

  • #191000

    #191000

    oklch(18% 0.037 85.1)

  • #001711

    #001711

    oklch(18.3% 0.035 174.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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