#402E2D

Closest named color: Onyx (#343A40). oklch(32.2% 0.027 22.3), rgb(64, 46, 45).

Aa

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

About this color

#402E2D 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.044 away. White text reads best on it, at 12.75:1.

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

Values

HEX#402E2D
RGBrgb(64, 46, 45)
HSLhsl(3, 17%, 21%)
OKLCHoklch(32.2% 0.027 22.3)

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 #402E2D 12.75:1 AAA Lc -102.1 Preferred for body text
Black text on #402E2D 1.64:1 Fails Lc 0.0 Not readable
#402E2D text on white 12.75:1 AAA Lc 98.8 Preferred for body text
#402E2D 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

    #E5D5D4

    oklch(88.6% 0.018 21.8)

  4. Step 300

    300

    #D5B9B7

    oklch(80.9% 0.032 22.7)

  5. Step 400

    400

    #BE9592

    oklch(70.7% 0.05 23.2)

  6. Step 500

    500

    #AD7A78

    oklch(63% 0.064 21.6)

  7. Step 600

    600

    #986360

    oklch(55.6% 0.069 23.1)

  8. Step 700

    700

    #825250

    oklch(49.2% 0.065 22.3)

  9. Step 800

    800

    #6A4341

    oklch(42.7% 0.055 22.8)

  10. Step 900

    900

    #563937

    oklch(37.8% 0.042 23.6)

  11. Step 950

    950 (this color)

    #402E2D

    oklch(32.2% 0.027 22.3)

Export this scale for Tailwind in the Tailwind colors tool

#402E2D 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)#31302D0.028
Deuteranopia (no green cones)#36342D0.026
Tritanopia (no blue cones)#442C2E0.010
Achromatopsia (no color)#3232320.027

Harmonies

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

Complementary

The opposite hue (180°).

  • #402E2D

    #402E2D

    oklch(32.2% 0.027 22.3)

  • #233739

    #233739

    oklch(32.1% 0.026 203.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402E2D

    #402E2D

    oklch(32.2% 0.027 22.3)

  • #3E2E35

    #3E2E35

    oklch(32.2% 0.026 350.6)

  • #3F3027

    #3F3027

    oklch(32.3% 0.027 52.4)

Open the analogous palette in the generator

Split complementary

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

  • #402E2D

    #402E2D

    oklch(32.2% 0.027 22.3)

  • #253832

    #253832

    oklch(32.2% 0.027 172.9)

  • #25363F

    #25363F

    oklch(32.2% 0.027 231.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402E2D

    #402E2D

    oklch(32.2% 0.027 22.3)

  • #2C372A

    #2C372A

    oklch(32.2% 0.027 140.8)

  • #2C3341

    #2C3341

    oklch(32.1% 0.027 264.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402E2D

    #402E2D

    oklch(32.2% 0.027 22.3)

  • #333525

    #333525

    oklch(32.2% 0.027 113.7)

  • #233739

    #233739

    oklch(32.1% 0.026 203.8)

  • #333140

    #333140

    oklch(32.2% 0.027 290.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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