#040E12

Closest named color: Almost Black (#070D0D). oklch(15.5% 0.019 222.6), rgb(4, 14, 18).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessvery dark (16%)
Chromaclose to neutral grey (0.019)
Temperatureneutral
Nearest nameAlmost Black (#070D0D)
Black text1.07:1
White text19.50:1

Values

HEX#040E12
RGBrgb(4, 14, 18)
HSLhsl(197, 64%, 4%)
OKLCHoklch(15.5% 0.019 222.6)

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 #040E12 19.50:1 AAA Lc -107.6 Preferred for body text
Black text on #040E12 1.07:1 Fails Lc 0.0 Not readable
#040E12 text on white 19.50:1 AAA Lc 105.7 Preferred for body text
#040E12 text on black 1.07: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

    #F3F6F7

    oklch(97.1% 0.003 219.5)

  2. Step 100

    100

    #E5EBED

    oklch(93.6% 0.007 219.6)

  3. Step 200

    200

    #D1DBDF

    oklch(88.5% 0.012 223.5)

  4. Step 300

    300

    #B2C4CB

    oklch(80.9% 0.022 223.1)

  5. Step 400

    400

    #89A6B1

    oklch(70.7% 0.036 222.8)

  6. Step 500

    500

    #6B909E

    oklch(63.1% 0.046 223.2)

  7. Step 600

    600

    #527A88

    oklch(55.5% 0.05 221.9)

  8. Step 700

    700

    #436774

    oklch(49.2% 0.046 222.7)

  9. Step 800

    800

    #37545E

    oklch(42.7% 0.038 221.6)

  10. Step 900

    900

    #30454D

    oklch(37.6% 0.03 223.5)

  11. Step 950

    950 (this color)

    #040E12

    oklch(15.5% 0.019 222.6)

Export this scale for Tailwind in the Tailwind colors tool

#040E12 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)#0C0D120.016
Deuteranopia (no green cones)#090C120.012
Tritanopia (no blue cones)#000F0F0.013
Achromatopsia (no color)#0C0C0C0.019

Harmonies

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

Complementary

The opposite hue (180°).

  • #040E12

    #040E12

    oklch(15.5% 0.019 222.6)

  • #130A06

    #130A06

    oklch(15.6% 0.019 48)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040E12

    #040E12

    oklch(15.5% 0.019 222.6)

  • #030F0E

    #030F0E

    oklch(15.5% 0.02 189.2)

  • #070D14

    #070D14

    oklch(15.6% 0.018 251.5)

Open the analogous palette in the generator

Split complementary

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

  • #040E12

    #040E12

    oklch(15.5% 0.019 222.6)

  • #13090A

    #13090A

    oklch(15.5% 0.018 12.6)

  • #110B04

    #110B04

    oklch(15.5% 0.019 75.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040E12

    #040E12

    oklch(15.5% 0.019 222.6)

  • #12090E

    #12090E

    oklch(15.5% 0.019 345)

  • #0E0D04

    #0E0D04

    oklch(15.7% 0.02 103.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040E12

    #040E12

    oklch(15.5% 0.019 222.6)

  • #0F0A12

    #0F0A12

    oklch(15.6% 0.018 312.5)

  • #130A06

    #130A06

    oklch(15.6% 0.019 48)

  • #090E06

    #090E06

    oklch(15.5% 0.019 132.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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