#040E1B

Closest named color: Rich Navy (#001219). oklch(16.1% 0.032 252.7), rgb(4, 14, 27).

Aa

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

About this color

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

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

Values

HEX#040E1B
RGBrgb(4, 14, 27)
HSLhsl(214, 74%, 6%)
OKLCHoklch(16.1% 0.032 252.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 #040E1B 19.37:1 AAA Lc -107.5 Preferred for body text
Black text on #040E1B 1.08:1 Fails Lc 0.0 Not readable
#040E1B text on white 19.37:1 AAA Lc 105.6 Preferred for body text
#040E1B 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

    #E5EAF1

    oklch(93.5% 0.011 256.7)

  3. Step 200

    200

    #CFDAE7

    oklch(88.4% 0.022 252.5)

  4. Step 300

    300

    #B0C3D9

    oklch(81% 0.037 252.1)

  5. Step 400

    400

    #86A3C7

    oklch(70.7% 0.062 254.1)

  6. Step 500

    500

    #678CB8

    oklch(63% 0.079 253.3)

  7. Step 600

    600

    #4E76A4

    oklch(55.6% 0.085 252.7)

  8. Step 700

    700

    #3F638D

    oklch(49.1% 0.08 253.1)

  9. Step 800

    800

    #345172

    oklch(42.7% 0.065 252.5)

  10. Step 900

    900

    #2D435C

    oklch(37.6% 0.051 252.3)

  11. Step 950

    950 (this color)

    #040E1B

    oklch(16.1% 0.032 252.7)

Export this scale for Tailwind in the Tailwind colors tool

#040E1B 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)#080F1C0.010
Deuteranopia (no green cones)#060C1B0.008
Tritanopia (no blue cones)#0011130.025
Achromatopsia (no color)#0D0D0D0.033

Harmonies

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

Complementary

The opposite hue (180°).

  • #040E1B

    #040E1B

    oklch(16.1% 0.032 252.7)

  • #160B01

    #160B01

    oklch(16.2% 0.031 71)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040E1B

    #040E1B

    oklch(16.1% 0.032 252.7)

  • #001017

    #001017

    oklch(16.1% 0.03 224.2)

  • #0C0B1B

    #0C0B1B

    oklch(16.1% 0.033 284.8)

Open the analogous palette in the generator

Split complementary

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

  • #040E1B

    #040E1B

    oklch(16.1% 0.032 252.7)

  • #190803

    #190803

    oklch(16% 0.034 43)

  • #100E00

    #100E00

    oklch(16.1% 0.034 104)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040E1B

    #040E1B

    oklch(16.1% 0.032 252.7)

  • #19070A

    #19070A

    oklch(16% 0.033 10.1)

  • #081003

    #081003

    oklch(16% 0.032 132.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040E1B

    #040E1B

    oklch(16.1% 0.032 252.7)

  • #170811

    #170811

    oklch(16.2% 0.031 344.1)

  • #160B01

    #160B01

    oklch(16.2% 0.031 71)

  • #011209

    #011209

    oklch(16.2% 0.033 161.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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