#040200

Closest named color: Almost Black (#070D0D). oklch(8.9% 0.018 82.3), rgb(4, 2, 0).

Aa

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

About this color

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

Hue familyNeutrals
Lightnessvery dark (9%)
Chromaclose to neutral grey (0.018)
Temperatureneutral
Nearest nameAlmost Black (#070D0D)
Black text1.01:1
White text20.71:1

Values

HEX#040200
RGBrgb(4, 2, 0)
HSLhsl(30, 100%, 1%)
OKLCHoklch(8.9% 0.018 82.3)

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 #040200 20.71:1 AAA Lc -107.9 Preferred for body text
Black text on #040200 1.01:1 Fails Lc 0.0 Not readable
#040200 text on white 20.71:1 AAA Lc 106.0 Preferred for body text
#040200 text on black 1.01: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

    #F6F5F3

    oklch(97% 0.003 84.6)

  2. Step 100

    100

    #ECE9E5

    oklch(93.5% 0.006 75.4)

  3. Step 200

    200

    #DDD8D0

    oklch(88.4% 0.012 79.8)

  4. Step 300

    300

    #C8C0B1

    oklch(81% 0.023 83.3)

  5. Step 400

    400

    #AB9F89

    oklch(70.7% 0.034 82.7)

  6. Step 500

    500

    #97876B

    oklch(63% 0.044 81.5)

  7. Step 600

    600

    #817153

    oklch(55.6% 0.048 82.9)

  8. Step 700

    700

    #6D5F43

    oklch(49.2% 0.045 84.3)

  9. Step 800

    800

    #594D38

    oklch(42.6% 0.036 81.4)

  10. Step 900

    900

    #494030

    oklch(37.6% 0.029 81.8)

  11. Step 950

    950 (this color)

    #040200

    oklch(8.9% 0.018 82.3)

Export this scale for Tailwind in the Tailwind colors tool

#040200 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)#0302000.005
Deuteranopia (no green cones)#0302000.005
Tritanopia (no blue cones)#0502010.011
Achromatopsia (no color)#0202020.019

Harmonies

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

Complementary

The opposite hue (180°).

  • #040200

    #040200

    oklch(8.9% 0.018 82.3)

  • #010206

    #010206

    oklch(8.6% 0.019 265.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #040200

    #040200

    oklch(8.9% 0.018 82.3)

  • #050200

    #050200

    oklch(9.2% 0.02 73.1)

  • #020300

    #020300

    oklch(9.1% 0.022 121)

Open the analogous palette in the generator

Split complementary

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

  • #040200

    #040200

    oklch(8.9% 0.018 82.3)

  • #000305

    #000305

    oklch(9% 0.017 224.6)

  • #020206

    #020206

    oklch(9% 0.017 282.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #040200

    #040200

    oklch(8.9% 0.018 82.3)

  • #000303

    #000303

    oklch(8.8% 0.015 194.8)

  • #040104

    #040104

    oklch(8.5% 0.021 327.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #040200

    #040200

    oklch(8.9% 0.018 82.3)

  • #000302

    #000302

    oklch(8.7% 0.016 175)

  • #010206

    #010206

    oklch(8.6% 0.019 265.1)

  • #050103

    #050103

    oklch(8.7% 0.021 344.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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