#040700

Closest named color: Almost Black (#070D0D). oklch(11.9% 0.03 124.2), rgb(4, 7, 0).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessvery dark (12%)
Chromaclose to neutral grey (0.030)
Temperatureneutral
Nearest nameAlmost Black (#070D0D)
Black text1.03:1
White text20.27:1

Values

HEX#040700
RGBrgb(4, 7, 0)
HSLhsl(86, 100%, 1%)
OKLCHoklch(11.9% 0.03 124.2)

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 #040700 20.27:1 AAA Lc -107.8 Preferred for body text
Black text on #040700 1.03:1 Fails Lc 0.0 Not readable
#040700 text on white 20.27:1 AAA Lc 106.0 Preferred for body text
#040700 text on black 1.03: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

    #F5F6F3

    oklch(97.2% 0.004 121.6)

  2. Step 100

    100

    #E8EBE4

    oklch(93.6% 0.01 125.7)

  3. Step 200

    200

    #D6DCCE

    oklch(88.6% 0.02 125.8)

  4. Step 300

    300

    #BCC5AC

    oklch(81% 0.036 123.3)

  5. Step 400

    400

    #99A781

    oklch(70.7% 0.056 124.2)

  6. Step 500

    500

    #809161

    oklch(63.1% 0.071 124.3)

  7. Step 600

    600

    #697B47

    oklch(55.5% 0.078 124.5)

  8. Step 700

    700

    #586838

    oklch(49.2% 0.073 124.1)

  9. Step 800

    800

    #48552F

    oklch(42.8% 0.061 124.3)

  10. Step 900

    900

    #3C462A

    oklch(37.7% 0.047 124.6)

  11. Step 950

    950 (this color)

    #040700

    oklch(11.9% 0.03 124.2)

Export this scale for Tailwind in the Tailwind colors tool

#040700 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)#0806000.013
Deuteranopia (no green cones)#0706000.010
Tritanopia (no blue cones)#0406050.025
Achromatopsia (no color)#0606060.030

Harmonies

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

Complementary

The opposite hue (180°).

  • #040700

    #040700

    oklch(11.9% 0.03 124.2)

  • #08030E

    #08030E

    oklch(11.8% 0.031 307.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040700

    #040700

    oklch(11.9% 0.03 124.2)

  • #080500

    #080500

    oklch(11.7% 0.024 91.8)

  • #000802

    #000802

    oklch(11.8% 0.031 152.7)

Open the analogous palette in the generator

Split complementary

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

  • #040700

    #040700

    oklch(11.9% 0.03 124.2)

  • #030511

    #030511

    oklch(12% 0.03 270.2)

  • #0C030A

    #0C030A

    oklch(12.2% 0.028 334)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040700

    #040700

    oklch(11.9% 0.03 124.2)

  • #000610

    #000610

    oklch(11.8% 0.031 246.2)

  • #0E0205

    #0E0205

    oklch(11.8% 0.031 0.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040700

    #040700

    oklch(11.9% 0.03 124.2)

  • #00070A

    #00070A

    oklch(11.8% 0.021 216)

  • #08030E

    #08030E

    oklch(11.8% 0.031 307.4)

  • #0F0301

    #0F0301

    oklch(12.2% 0.03 40.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #040700 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.