#40402D

Closest named color: Charcoal Grey (#3C4142). oklch(36.6% 0.031 107.8), rgb(64, 64, 45).

Aa

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

About this color

#40402D is a dark, muted brown. In OKLCH its lightness is 37%, its chroma 0.031 and its hue 108°. Its hue sits on the warm side of the wheel. The nearest named color is Charcoal Grey (#3C4142), ΔE 0.034 away. White text reads best on it, at 10.55:1.

Hue familyBrowns
Lightnessdark (37%)
Chromamuted (0.031)
Temperaturewarm
Nearest nameCharcoal Grey (#3C4142)
Black text1.98:1
White text10.55:1

Values

HEX#40402D
RGBrgb(64, 64, 45)
HSLhsl(60, 17%, 21%)
OKLCHoklch(36.6% 0.031 107.8)

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 #40402D 10.55:1 AAA Lc -98.5 Preferred for body text
Black text on #40402D 1.98:1 Fails Lc 9.4 Not readable
#40402D text on white 10.55:1 AAA Lc 94.5 Preferred for body text
#40402D text on black 1.98: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

    #F5F6F3

    oklch(97.2% 0.004 121.6)

  2. Step 100

    100

    #EAEAE5

    oklch(93.6% 0.007 106.5)

  3. Step 200

    200

    #DADAD0

    oklch(88.6% 0.013 106.7)

  4. Step 300

    300

    #C2C2B1

    oklch(80.9% 0.023 106.9)

  5. Step 400

    400

    #A2A388

    oklch(70.7% 0.038 109.1)

  6. Step 500

    500

    #8C8C6B

    oklch(63.1% 0.047 107.7)

  7. Step 600

    600

    #767652

    oklch(55.6% 0.052 108)

  8. Step 700

    700

    #636343

    oklch(49.1% 0.048 108)

  9. Step 800

    800

    #515137

    oklch(42.8% 0.04 108)

  10. Step 900

    900 (this color)

    #40402D

    oklch(36.6% 0.031 107.8)

  11. Step 950

    950

    #27271C

    oklch(26.9% 0.019 107.6)

Export this scale for Tailwind in the Tailwind colors tool

#40402D 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)#433E2C0.007
Deuteranopia (no green cones)#443F2E0.008
Tritanopia (no blue cones)#433E3B0.027
Achromatopsia (no color)#3F3F3F0.031

Harmonies

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

Complementary

The opposite hue (180°).

  • #40402D

    #40402D

    oklch(36.6% 0.031 107.8)

  • #3D3C4E

    #3D3C4E

    oklch(36.5% 0.031 287.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #40402D

    #40402D

    oklch(36.6% 0.031 107.8)

  • #483D2C

    #483D2C

    oklch(36.7% 0.031 78.3)

  • #374333

    #374333

    oklch(36.7% 0.031 137.9)

Open the analogous palette in the generator

Split complementary

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

  • #40402D

    #40402D

    oklch(36.6% 0.031 107.8)

  • #353F4F

    #353F4F

    oklch(36.5% 0.031 259.7)

  • #463A49

    #463A49

    oklch(36.7% 0.03 319.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #40402D

    #40402D

    oklch(36.6% 0.031 107.8)

  • #2D424C

    #2D424C

    oklch(36.6% 0.032 229.1)

  • #4B3841

    #4B3841

    oklch(36.5% 0.03 348.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #40402D

    #40402D

    oklch(36.6% 0.031 107.8)

  • #2B4444

    #2B4444

    oklch(36.6% 0.031 195.9)

  • #3D3C4E

    #3D3C4E

    oklch(36.5% 0.031 287.3)

  • #4E3838

    #4E3838

    oklch(36.5% 0.032 18.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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