#402D25

Closest named color: Onyx (#343A40). oklch(31.7% 0.032 43.8), rgb(64, 45, 37).

Aa

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

About this color

#402D25 is a dark, muted brown. In OKLCH its lightness is 32%, its chroma 0.032 and its hue 44°. Its hue sits on the warm side of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.052 away. White text reads best on it, at 12.96:1.

Hue familyBrowns
Lightnessdark (32%)
Chromamuted (0.032)
Temperaturewarm
Nearest nameOnyx (#343A40)
Black text1.62:1
White text12.96:1

Values

HEX#402D25
RGBrgb(64, 45, 37)
HSLhsl(18, 27%, 20%)
OKLCHoklch(31.7% 0.032 43.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 #402D25 12.96:1 AAA Lc -102.4 Preferred for body text
Black text on #402D25 1.62:1 Fails Lc 0.0 Not readable
#402D25 text on white 12.96:1 AAA Lc 99.1 Preferred for body text
#402D25 text on black 1.62: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

    #F9F4F3

    oklch(97.1% 0.006 31.1)

  2. Step 100

    100

    #F1E8E4

    oklch(93.7% 0.011 45.7)

  3. Step 200

    200

    #E6D5CE

    oklch(88.5% 0.021 43.8)

  4. Step 300

    300

    #D6BAAE

    oklch(81% 0.036 44.6)

  5. Step 400

    400

    #C19583

    oklch(70.6% 0.059 43.3)

  6. Step 500

    500

    #B17B63

    oklch(63.2% 0.076 44.8)

  7. Step 600

    600

    #9C634A

    oklch(55.6% 0.083 44.3)

  8. Step 700

    700

    #85523C

    oklch(49.1% 0.076 43.9)

  9. Step 800

    800

    #6C4331

    oklch(42.6% 0.064 44.3)

  10. Step 900

    900

    #58392C

    oklch(37.7% 0.049 43.5)

  11. Step 950

    950 (this color)

    #402D25

    oklch(31.7% 0.032 43.8)

Export this scale for Tailwind in the Tailwind colors tool

#402D25 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)#322F240.027
Deuteranopia (no green cones)#3633250.026
Tritanopia (no blue cones)#452A2B0.019
Achromatopsia (no color)#3131310.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D25

    #402D25

    oklch(31.7% 0.032 43.8)

  • #20363E

    #20363E

    oklch(31.8% 0.031 223)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D25

    #402D25

    oklch(31.7% 0.032 43.8)

  • #412C2D

    #412C2D

    oklch(31.8% 0.031 15.8)

  • #3C3020

    #3C3020

    oklch(31.8% 0.032 74.3)

Open the analogous palette in the generator

Split complementary

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

  • #402D25

    #402D25

    oklch(31.7% 0.032 43.8)

  • #1E3737

    #1E3737

    oklch(31.7% 0.031 195.7)

  • #273342

    #273342

    oklch(31.7% 0.032 254.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D25

    #402D25

    oklch(31.7% 0.032 43.8)

  • #23372E

    #23372E

    oklch(31.7% 0.03 164.8)

  • #303042

    #303042

    oklch(31.7% 0.032 284.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D25

    #402D25

    oklch(31.7% 0.032 43.8)

  • #2C3625

    #2C3625

    oklch(31.8% 0.032 132.8)

  • #20363E

    #20363E

    oklch(31.8% 0.031 223)

  • #382D3D

    #382D3D

    oklch(31.6% 0.032 315.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #402D25 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.