#040E1C

Closest named color: Rich Navy (#001219). oklch(16.2% 0.034 254.3), rgb(4, 14, 28).

Aa

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

About this color

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

Hue familyBlues
Lightnessvery dark (16%)
Chromamuted (0.034)
Temperaturecool
Nearest nameRich Navy (#001219)
Black text1.08:1
White text19.35:1

Values

HEX#040E1C
RGBrgb(4, 14, 28)
HSLhsl(215, 75%, 6%)
OKLCHoklch(16.2% 0.034 254.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 #040E1C 19.35:1 AAA Lc -107.5 Preferred for body text
Black text on #040E1C 1.08:1 Fails Lc 0.0 Not readable
#040E1C text on white 19.35:1 AAA Lc 105.6 Preferred for body text
#040E1C 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

    #F3F6F9

    oklch(97.2% 0.005 247.9)

  2. Step 100

    100

    #E5EAF2

    oklch(93.6% 0.012 259.8)

  3. Step 200

    200

    #CFDAE8

    oklch(88.4% 0.023 254.4)

  4. Step 300

    300

    #AFC3DB

    oklch(81% 0.04 253.1)

  5. Step 400

    400

    #85A3C9

    oklch(70.7% 0.065 254.6)

  6. Step 500

    500

    #668CBB

    oklch(63.1% 0.083 254.2)

  7. Step 600

    600

    #4D75A7

    oklch(55.5% 0.09 254.6)

  8. Step 700

    700

    #3E638F

    oklch(49.2% 0.083 253.6)

  9. Step 800

    800

    #335174

    oklch(42.8% 0.069 253.1)

  10. Step 900

    900

    #2D435E

    oklch(37.7% 0.054 254.1)

  11. Step 950

    950 (this color)

    #040E1C

    oklch(16.2% 0.034 254.3)

Export this scale for Tailwind in the Tailwind colors tool

#040E1C 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)#080F1D0.009
Deuteranopia (no green cones)#050C1C0.008
Tritanopia (no blue cones)#0011130.027
Achromatopsia (no color)#0E0E0E0.034

Harmonies

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

Complementary

The opposite hue (180°).

  • #040E1C

    #040E1C

    oklch(16.2% 0.034 254.3)

  • #160B00

    #160B00

    oklch(16.1% 0.034 74.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040E1C

    #040E1C

    oklch(16.2% 0.034 254.3)

  • #001017

    #001017

    oklch(16.1% 0.03 224.2)

  • #0C0B1C

    #0C0B1C

    oklch(16.1% 0.035 284.4)

Open the analogous palette in the generator

Split complementary

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

  • #040E1C

    #040E1C

    oklch(16.2% 0.034 254.3)

  • #1A0803

    #1A0803

    oklch(16.2% 0.035 42)

  • #100E00

    #100E00

    oklch(16.1% 0.034 104)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040E1C

    #040E1C

    oklch(16.2% 0.034 254.3)

  • #1A0709

    #1A0709

    oklch(16.2% 0.034 14.4)

  • #071103

    #071103

    oklch(16.2% 0.035 135.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040E1C

    #040E1C

    oklch(16.2% 0.034 254.3)

  • #180711

    #180711

    oklch(16.2% 0.035 345.1)

  • #160B00

    #160B00

    oklch(16.1% 0.034 74.8)

  • #00120A

    #00120A

    oklch(16.1% 0.034 165.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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