#040B17

Closest named color: Almost Black (#070D0D). oklch(14.9% 0.029 256.9), rgb(4, 11, 23).

Aa

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

About this color

#040B17 is a very dark close to neutral grey. In OKLCH its lightness is 15%, its chroma 0.029. It has too little chroma to lean warm or cool. The nearest named color is Almost Black (#070D0D), ΔE 0.026 away. White text reads best on it, at 19.71:1.

Hue familyNeutrals
Lightnessvery dark (15%)
Chromaclose to neutral grey (0.029)
Temperatureneutral
Nearest nameAlmost Black (#070D0D)
Black text1.06:1
White text19.71:1

Values

HEX#040B17
RGBrgb(4, 11, 23)
HSLhsl(218, 70%, 5%)
OKLCHoklch(14.9% 0.029 256.9)

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 #040B17 19.71:1 AAA Lc -107.7 Preferred for body text
Black text on #040B17 1.06:1 Fails Lc 0.0 Not readable
#040B17 text on white 19.71:1 AAA Lc 105.8 Preferred for body text
#040B17 text on black 1.06: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

    #E6EAF1

    oklch(93.6% 0.01 261.8)

  3. Step 200

    200

    #D1DAE6

    oklch(88.5% 0.019 255.5)

  4. Step 300

    300

    #B3C2D7

    oklch(80.9% 0.034 256.8)

  5. Step 400

    400

    #8BA2C4

    oklch(70.7% 0.056 258)

  6. Step 500

    500

    #6E8BB4

    oklch(63% 0.07 257.1)

  7. Step 600

    600

    #5675A0

    oklch(55.7% 0.076 256.7)

  8. Step 700

    700

    #466289

    oklch(49.1% 0.071 256.8)

  9. Step 800

    800

    #3A506F

    oklch(42.7% 0.059 257)

  10. Step 900

    900

    #32425A

    oklch(37.6% 0.046 258.3)

  11. Step 950

    950 (this color)

    #040B17

    oklch(14.9% 0.029 256.9)

Export this scale for Tailwind in the Tailwind colors tool

#040B17 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)#060C170.007
Deuteranopia (no green cones)#050A170.004
Tritanopia (no blue cones)#000E0F0.026
Achromatopsia (no color)#0B0B0B0.029

Harmonies

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

Complementary

The opposite hue (180°).

  • #040B17

    #040B17

    oklch(14.9% 0.029 256.9)

  • #120900

    #120900

    oklch(14.9% 0.031 78)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040B17

    #040B17

    oklch(14.9% 0.029 256.9)

  • #000D14

    #000D14

    oklch(14.8% 0.029 226.8)

  • #0A0916

    #0A0916

    oklch(14.9% 0.028 286.1)

Open the analogous palette in the generator

Split complementary

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

  • #040B17

    #040B17

    oklch(14.9% 0.029 256.9)

  • #150702

    #150702

    oklch(14.9% 0.03 49.3)

  • #0C0C01

    #0C0C01

    oklch(15% 0.029 109.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040B17

    #040B17

    oklch(14.9% 0.029 256.9)

  • #150607

    #150607

    oklch(14.9% 0.028 16)

  • #050E03

    #050E03

    oklch(14.9% 0.031 138.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040B17

    #040B17

    oklch(14.9% 0.029 256.9)

  • #14060D

    #14060D

    oklch(14.9% 0.03 348.8)

  • #120900

    #120900

    oklch(14.9% 0.031 78)

  • #000F08

    #000F08

    oklch(14.9% 0.031 165.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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