#40402F

Closest named color: Charcoal Grey (#3C4142). oklch(36.6% 0.028 107.7), rgb(64, 64, 47).

Aa

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

About this color

#40402F is a dark close to neutral grey. In OKLCH its lightness is 37%, its chroma 0.028. It has too little chroma to lean warm or cool. The nearest named color is Charcoal Grey (#3C4142), ΔE 0.030 away. White text reads best on it, at 10.54:1.

Hue familyNeutrals
Lightnessdark (37%)
Chromaclose to neutral grey (0.028)
Temperatureneutral
Nearest nameCharcoal Grey (#3C4142)
Black text1.99:1
White text10.54:1

Values

HEX#40402F
RGBrgb(64, 64, 47)
HSLhsl(60, 15%, 22%)
OKLCHoklch(36.6% 0.028 107.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 #40402F 10.54:1 AAA Lc -98.4 Preferred for body text
Black text on #40402F 1.99:1 Fails Lc 9.4 Not readable
#40402F text on white 10.54:1 AAA Lc 94.5 Preferred for body text
#40402F text on black 1.99:1 Fails Lc -8.1 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 900.

  1. Step 50

    50

    #F5F5F3

    oklch(97% 0.003 106.4)

  2. Step 100

    100

    #EAEAE6

    oklch(93.6% 0.005 106.5)

  3. Step 200

    200

    #DADAD1

    oklch(88.6% 0.012 106.6)

  4. Step 300

    300

    #C2C2B3

    oklch(81% 0.021 106.9)

  5. Step 400

    400

    #A2A28B

    oklch(70.6% 0.032 107.2)

  6. Step 500

    500

    #8C8C6E

    oklch(63.2% 0.043 107.6)

  7. Step 600

    600

    #767656

    oklch(55.7% 0.047 107.8)

  8. Step 700

    700

    #636346

    oklch(49.2% 0.044 107.9)

  9. Step 800

    800

    #51513A

    oklch(42.8% 0.036 107.8)

  10. Step 900

    900 (this color)

    #40402F

    oklch(36.6% 0.028 107.7)

  11. Step 950

    950

    #27271D

    oklch(26.9% 0.018 107.5)

Export this scale for Tailwind in the Tailwind colors tool

#40402F 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)#433F2E0.006
Deuteranopia (no green cones)#433F300.007
Tritanopia (no blue cones)#433E3B0.024
Achromatopsia (no color)#3F3F3F0.028

Harmonies

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

Complementary

The opposite hue (180°).

  • #40402F

    #40402F

    oklch(36.6% 0.028 107.7)

  • #3E3D4D

    #3E3D4D

    oklch(36.7% 0.027 287.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40402F

    #40402F

    oklch(36.6% 0.028 107.7)

  • #473D2E

    #473D2E

    oklch(36.6% 0.028 77.7)

  • #384234

    #384234

    oklch(36.5% 0.027 136.8)

Open the analogous palette in the generator

Split complementary

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

  • #40402F

    #40402F

    oklch(36.6% 0.028 107.7)

  • #363F4E

    #363F4E

    oklch(36.6% 0.029 260.6)

  • #453A48

    #453A48

    oklch(36.5% 0.028 318.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40402F

    #40402F

    oklch(36.6% 0.028 107.7)

  • #2F424A

    #2F424A

    oklch(36.6% 0.028 225.8)

  • #4A3941

    #4A3941

    oklch(36.6% 0.027 348.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40402F

    #40402F

    oklch(36.6% 0.028 107.7)

  • #2D4344

    #2D4344

    oklch(36.5% 0.028 199.6)

  • #3E3D4D

    #3E3D4D

    oklch(36.7% 0.027 287.8)

  • #4C3939

    #4C3939

    oklch(36.6% 0.027 18.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #40402F 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.