#040F05

Closest named color: Almost Black (#070D0D). oklch(15.3% 0.029 146.7), rgb(4, 15, 5).

Aa

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

About this color

#040F05 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.024 away. White text reads best on it, at 19.52:1.

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

Values

HEX#040F05
RGBrgb(4, 15, 5)
HSLhsl(125, 58%, 4%)
OKLCHoklch(15.3% 0.029 146.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 #040F05 19.52:1 AAA Lc -107.6 Preferred for body text
Black text on #040F05 1.07:1 Fails Lc 0.0 Not readable
#040F05 text on white 19.52:1 AAA Lc 105.7 Preferred for body text
#040F05 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

    #F3F6F4

    oklch(97% 0.004 157.2)

  2. Step 100

    100

    #E6ECE6

    oklch(93.7% 0.01 145.5)

  3. Step 200

    200

    #D1DDD2

    oklch(88.5% 0.02 147.8)

  4. Step 300

    300

    #B3C7B4

    oklch(80.9% 0.034 146.6)

  5. Step 400

    400

    #8AAA8C

    oklch(70.6% 0.056 146.6)

  6. Step 500

    500

    #6D9570

    oklch(63% 0.07 146.6)

  7. Step 600

    600

    #548058

    oklch(55.6% 0.078 146.6)

  8. Step 700

    700

    #446C48

    oklch(49.1% 0.073 146.8)

  9. Step 800

    800

    #38583B

    oklch(42.7% 0.061 146.7)

  10. Step 900

    900

    #314833

    oklch(37.6% 0.046 146.8)

  11. Step 950

    950 (this color)

    #040F05

    oklch(15.3% 0.029 146.7)

Export this scale for Tailwind in the Tailwind colors tool

#040F05 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)#0F0D040.022
Deuteranopia (no green cones)#0E0C050.023
Tritanopia (no blue cones)#030E0C0.018
Achromatopsia (no color)#0C0C0C0.029

Harmonies

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

Complementary

The opposite hue (180°).

  • #040F05

    #040F05

    oklch(15.3% 0.029 146.7)

  • #120712

    #120712

    oklch(15.2% 0.03 326.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040F05

    #040F05

    oklch(15.3% 0.029 146.7)

  • #0B0D01

    #0B0D01

    oklch(15.2% 0.031 115.7)

  • #00100B

    #00100B

    oklch(15.4% 0.029 173.7)

Open the analogous palette in the generator

Split complementary

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

  • #040F05

    #040F05

    oklch(15.3% 0.029 146.7)

  • #0D0917

    #0D0917

    oklch(15.3% 0.03 295.9)

  • #15060C

    #15060C

    oklch(15.1% 0.03 354.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040F05

    #040F05

    oklch(15.3% 0.029 146.7)

  • #060B18

    #060B18

    oklch(15.2% 0.03 265.4)

  • #160706

    #160706

    oklch(15.3% 0.028 25.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040F05

    #040F05

    oklch(15.3% 0.029 146.7)

  • #010D17

    #010D17

    oklch(15.2% 0.031 239.1)

  • #120712

    #120712

    oklch(15.2% 0.03 326.9)

  • #150802

    #150802

    oklch(15.2% 0.029 54.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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