#402E2C

Closest named color: Onyx (#343A40). oklch(32.1% 0.027 25.9), rgb(64, 46, 44).

Aa

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

About this color

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

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

Values

HEX#402E2C
RGBrgb(64, 46, 44)
HSLhsl(6, 19%, 21%)
OKLCHoklch(32.1% 0.027 25.9)

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 #402E2C 12.76:1 AAA Lc -102.2 Preferred for body text
Black text on #402E2C 1.64:1 Fails Lc 0.0 Not readable
#402E2C text on white 12.76:1 AAA Lc 98.8 Preferred for body text
#402E2C text on black 1.64: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

    #F8F4F4

    oklch(97% 0.004 17.2)

  2. Step 100

    100

    #F0E8E7

    oklch(93.7% 0.009 26)

  3. Step 200

    200

    #E5D5D3

    oklch(88.5% 0.018 26.1)

  4. Step 300

    300

    #D5B9B6

    oklch(80.9% 0.033 25.1)

  5. Step 400

    400

    #BF9590

    oklch(70.8% 0.051 26.3)

  6. Step 500

    500

    #AE7A75

    oklch(63.1% 0.066 25.2)

  7. Step 600

    600

    #99635E

    oklch(55.7% 0.071 25.4)

  8. Step 700

    700

    #82524D

    oklch(49.1% 0.065 26.2)

  9. Step 800

    800

    #6A433F

    oklch(42.7% 0.055 26)

  10. Step 900

    900

    #563936

    oklch(37.7% 0.042 25.8)

  11. Step 950

    950 (this color)

    #402E2C

    oklch(32.1% 0.027 25.9)

Export this scale for Tailwind in the Tailwind colors tool

#402E2C 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)#32302C0.027
Deuteranopia (no green cones)#36342C0.026
Tritanopia (no blue cones)#442C2E0.011
Achromatopsia (no color)#3232320.027

Harmonies

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

Complementary

The opposite hue (180°).

  • #402E2C

    #402E2C

    oklch(32.1% 0.027 25.9)

  • #22373A

    #22373A

    oklch(32% 0.027 207.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402E2C

    #402E2C

    oklch(32.1% 0.027 25.9)

  • #3F2E34

    #3F2E34

    oklch(32.3% 0.027 355.7)

  • #3E3026

    #3E3026

    oklch(32.2% 0.027 57.1)

Open the analogous palette in the generator

Split complementary

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

  • #402E2C

    #402E2C

    oklch(32.1% 0.027 25.9)

  • #243833

    #243833

    oklch(32.2% 0.027 177.2)

  • #26363F

    #26363F

    oklch(32.3% 0.026 233.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402E2C

    #402E2C

    oklch(32.1% 0.027 25.9)

  • #2A372B

    #2A372B

    oklch(32.1% 0.027 146.9)

  • #2D3341

    #2D3341

    oklch(32.1% 0.026 266.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402E2C

    #402E2C

    oklch(32.1% 0.027 25.9)

  • #323525

    #323525

    oklch(32.1% 0.027 116.6)

  • #22373A

    #22373A

    oklch(32% 0.027 207.2)

  • #343140

    #343140

    oklch(32.3% 0.027 294)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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