#402D36

Closest named color: Onyx (#343A40). oklch(32.3% 0.031 349), rgb(64, 45, 54).

Aa

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

About this color

#402D36 is a dark, muted red. In OKLCH its lightness is 32%, its chroma 0.031 and its hue 349°. Its hue sits on the warm side of the wheel. The nearest named color is Onyx (#343A40), ΔE 0.043 away. White text reads best on it, at 12.75:1.

Hue familyReds
Lightnessdark (32%)
Chromamuted (0.031)
Temperaturewarm
Nearest nameOnyx (#343A40)
Black text1.64:1
White text12.75:1

Values

HEX#402D36
RGBrgb(64, 45, 54)
HSLhsl(332, 17%, 21%)
OKLCHoklch(32.3% 0.031 349)

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

    #F8F4F6

    oklch(97.1% 0.005 345.3)

  2. Step 100

    100

    #F0E7EB

    oklch(93.6% 0.011 348.4)

  3. Step 200

    200

    #E4D4DB

    oklch(88.5% 0.02 349.1)

  4. Step 300

    300

    #D4B7C4

    oklch(80.8% 0.037 349.1)

  5. Step 400

    400

    #BE92A6

    oklch(70.7% 0.059 349.7)

  6. Step 500

    500

    #AD7791

    oklch(63.2% 0.076 349.1)

  7. Step 600

    600

    #985F7B

    oklch(55.7% 0.083 349.2)

  8. Step 700

    700

    #814E68

    oklch(49.1% 0.077 348.4)

  9. Step 800

    800

    #694054

    oklch(42.6% 0.064 349.4)

  10. Step 900

    900

    #563746

    oklch(37.9% 0.05 349.2)

  11. Step 950

    950 (this color)

    #402D36

    oklch(32.3% 0.031 349)

Export this scale for Tailwind in the Tailwind colors tool

#402D36 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)#2F31360.033
Deuteranopia (no green cones)#3334360.031
Tritanopia (no blue cones)#432D300.012
Achromatopsia (no color)#3232320.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D36

    #402D36

    oklch(32.3% 0.031 349)

  • #233931

    #233931

    oklch(32.3% 0.031 169.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D36

    #402D36

    oklch(32.3% 0.031 349)

  • #3B2E3E

    #3B2E3E

    oklch(32.2% 0.033 319.9)

  • #422D2D

    #422D2D

    oklch(32.2% 0.031 18.9)

Open the analogous palette in the generator

Split complementary

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

  • #402D36

    #402D36

    oklch(32.3% 0.031 349)

  • #2B3828

    #2B3828

    oklch(32.4% 0.033 139.8)

  • #1F383A

    #1F383A

    oklch(32.1% 0.031 202.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D36

    #402D36

    oklch(32.3% 0.031 349)

  • #353522

    #353522

    oklch(32.3% 0.032 108)

  • #223740

    #223740

    oklch(32.3% 0.031 226.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D36

    #402D36

    oklch(32.3% 0.031 349)

  • #3C3221

    #3C3221

    oklch(32.3% 0.031 80.5)

  • #233931

    #233931

    oklch(32.3% 0.031 169.5)

  • #2A3444

    #2A3444

    oklch(32.3% 0.032 259.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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