#040F07

Closest named color: Almost Black (#070D0D). oklch(15.4% 0.026 153.4), rgb(4, 15, 7).

Aa

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

About this color

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

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

Values

HEX#040F07
RGBrgb(4, 15, 7)
HSLhsl(136, 58%, 4%)
OKLCHoklch(15.4% 0.026 153.4)

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

    #E6ECE7

    oklch(93.7% 0.009 150.7)

  3. Step 200

    200

    #D1DDD4

    oklch(88.6% 0.018 153.5)

  4. Step 300

    300

    #B3C7B8

    oklch(81% 0.03 153.2)

  5. Step 400

    400

    #8AAA93

    oklch(70.7% 0.048 153.8)

  6. Step 500

    500

    #6C9578

    oklch(63.1% 0.063 153.5)

  7. Step 600

    600

    #547F61

    oklch(55.6% 0.067 153.4)

  8. Step 700

    700

    #446B50

    oklch(49% 0.062 153.4)

  9. Step 800

    800

    #385742

    oklch(42.6% 0.051 154.1)

  10. Step 900

    900

    #314838

    oklch(37.7% 0.04 153.8)

  11. Step 950

    950 (this color)

    #040F07

    oklch(15.4% 0.026 153.4)

Export this scale for Tailwind in the Tailwind colors tool

#040F07 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)#0F0D070.023
Deuteranopia (no green cones)#0D0C070.021
Tritanopia (no blue cones)#030F0D0.013
Achromatopsia (no color)#0C0C0C0.026

Harmonies

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

Complementary

The opposite hue (180°).

  • #040F07

    #040F07

    oklch(15.4% 0.026 153.4)

  • #120810

    #120810

    oklch(15.3% 0.024 334.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040F07

    #040F07

    oklch(15.4% 0.026 153.4)

  • #0A0E03

    #0A0E03

    oklch(15.5% 0.026 123.2)

  • #010F0D

    #010F0D

    oklch(15.3% 0.024 184.9)

Open the analogous palette in the generator

Split complementary

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

  • #040F07

    #040F07

    oklch(15.4% 0.026 153.4)

  • #0E0915

    #0E0915

    oklch(15.3% 0.026 302.7)

  • #15070B

    #15070B

    oklch(15.3% 0.027 1.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040F07

    #040F07

    oklch(15.4% 0.026 153.4)

  • #080B17

    #080B17

    oklch(15.3% 0.026 271.9)

  • #150805

    #150805

    oklch(15.4% 0.025 37.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040F07

    #040F07

    oklch(15.4% 0.026 153.4)

  • #030D16

    #030D16

    oklch(15.3% 0.026 242.5)

  • #120810

    #120810

    oklch(15.3% 0.024 334.1)

  • #130902

    #130902

    oklch(15.2% 0.026 65.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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