#402F2E

Closest named color: Onyx (#343A40). oklch(32.4% 0.025 22.4), rgb(64, 47, 46).

Aa

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

About this color

#402F2E is a dark close to neutral grey. In OKLCH its lightness is 32%, its chroma 0.025. It has too little chroma to lean warm or cool. The nearest named color is Onyx (#343A40), ΔE 0.041 away. White text reads best on it, at 12.61:1.

Hue familyNeutrals
Lightnessdark (32%)
Chromaclose to neutral grey (0.025)
Temperatureneutral
Nearest nameOnyx (#343A40)
Black text1.66:1
White text12.61:1

Values

HEX#402F2E
RGBrgb(64, 47, 46)
HSLhsl(3, 16%, 22%)
OKLCHoklch(32.4% 0.025 22.4)

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 #402F2E 12.61:1 AAA Lc -102.0 Preferred for body text
Black text on #402F2E 1.66:1 Fails Lc 0.0 Not readable
#402F2E text on white 12.61:1 AAA Lc 98.6 Preferred for body text
#402F2E text on black 1.66: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 900.

  1. Step 50

    50

    #F7F5F5

    oklch(97.2% 0.002 17.2)

  2. Step 100

    100

    #EDE8E8

    oklch(93.5% 0.005 17.3)

  3. Step 200

    200

    #E0D7D6

    oklch(88.6% 0.01 25.1)

  4. Step 300

    300

    #CDBCBB

    oklch(80.9% 0.019 21.6)

  5. Step 400

    400

    #B39A98

    oklch(70.8% 0.03 23.3)

  6. Step 500

    500

    #A0817F

    oklch(63.2% 0.039 22.5)

  7. Step 600

    600

    #8A6A68

    oklch(55.6% 0.041 22.6)

  8. Step 700

    700

    #755857

    oklch(49% 0.039 20.8)

  9. Step 800

    800

    #604847

    oklch(42.7% 0.033 21.3)

  10. Step 900

    900 (this color)

    #402F2E

    oklch(32.4% 0.025 22.4)

  11. Step 950

    950

    #2E2323

    oklch(26.9% 0.017 18.3)

Export this scale for Tailwind in the Tailwind colors tool

#402F2E 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)#32312E0.026
Deuteranopia (no green cones)#36342E0.024
Tritanopia (no blue cones)#442D2F0.010
Achromatopsia (no color)#3333330.025

Harmonies

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

Complementary

The opposite hue (180°).

  • #402F2E

    #402F2E

    oklch(32.4% 0.025 22.4)

  • #243839

    #243839

    oklch(32.4% 0.026 199.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402F2E

    #402F2E

    oklch(32.4% 0.025 22.4)

  • #3E2F35

    #3E2F35

    oklch(32.4% 0.024 352.6)

  • #3F3128

    #3F3128

    oklch(32.6% 0.026 54.3)

Open the analogous palette in the generator

Split complementary

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

  • #402F2E

    #402F2E

    oklch(32.4% 0.025 22.4)

  • #273832

    #273832

    oklch(32.4% 0.025 170.9)

  • #27363F

    #27363F

    oklch(32.3% 0.025 234.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402F2E

    #402F2E

    oklch(32.4% 0.025 22.4)

  • #2D372C

    #2D372C

    oklch(32.4% 0.023 142.6)

  • #2D3441

    #2D3441

    oklch(32.4% 0.025 262.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402F2E

    #402F2E

    oklch(32.4% 0.025 22.4)

  • #343527

    #343527

    oklch(32.3% 0.024 111)

  • #243839

    #243839

    oklch(32.4% 0.026 199.9)

  • #343240

    #343240

    oklch(32.5% 0.025 291.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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