#402E36

Closest named color: Onyx (#343A40). oklch(32.5% 0.029 350.5), rgb(64, 46, 54).

Aa

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

About this color

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

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

Values

HEX#402E36
RGBrgb(64, 46, 54)
HSLhsl(333, 16%, 22%)
OKLCHoklch(32.5% 0.029 350.5)

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

    #F7F5F6

    oklch(97.2% 0.002 345.2)

  2. Step 100

    100

    #EDE8EA

    oklch(93.5% 0.006 350.8)

  3. Step 200

    200

    #E0D6DA

    oklch(88.5% 0.012 351)

  4. Step 300

    300

    #CCBBC2

    oklch(80.8% 0.021 350.7)

  5. Step 400

    400

    #B398A3

    oklch(70.7% 0.035 351.6)

  6. Step 500

    500

    #9F7F8D

    oklch(63.1% 0.044 350.3)

  7. Step 600

    600

    #8A6877

    oklch(55.6% 0.048 350.6)

  8. Step 700

    700

    #755664

    oklch(49% 0.046 350.1)

  9. Step 800

    800

    #5F4752

    oklch(42.7% 0.037 349.6)

  10. Step 900

    900 (this color)

    #402E36

    oklch(32.5% 0.029 350.5)

  11. Step 950

    950

    #2E2328

    oklch(27.1% 0.019 349.4)

Export this scale for Tailwind in the Tailwind colors tool

#402E36 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)#3031360.030
Deuteranopia (no green cones)#3434360.028
Tritanopia (no blue cones)#432E310.010
Achromatopsia (no color)#3333330.030

Harmonies

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

Complementary

The opposite hue (180°).

  • #402E36

    #402E36

    oklch(32.5% 0.029 350.5)

  • #253932

    #253932

    oklch(32.5% 0.029 170.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402E36

    #402E36

    oklch(32.5% 0.029 350.5)

  • #3B2F3D

    #3B2F3D

    oklch(32.4% 0.029 321.5)

  • #422E2E

    #422E2E

    oklch(32.5% 0.03 18.8)

Open the analogous palette in the generator

Split complementary

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

  • #402E36

    #402E36

    oklch(32.5% 0.029 350.5)

  • #2C382A

    #2C382A

    oklch(32.5% 0.029 141.1)

  • #21393A

    #21393A

    oklch(32.5% 0.03 199.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402E36

    #402E36

    oklch(32.5% 0.029 350.5)

  • #353624

    #353624

    oklch(32.6% 0.03 110.6)

  • #243740

    #243740

    oklch(32.4% 0.029 229.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402E36

    #402E36

    oklch(32.5% 0.029 350.5)

  • #3C3323

    #3C3323

    oklch(32.6% 0.029 81.7)

  • #253932

    #253932

    oklch(32.5% 0.029 170.7)

  • #2B3443

    #2B3443

    oklch(32.3% 0.03 260.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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