#402D35

Closest named color: Onyx (#343A40). oklch(32.2% 0.031 351.9), rgb(64, 45, 53).

Aa

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

About this color

#402D35 is a dark, muted red. In OKLCH its lightness is 32%, its chroma 0.031 and its hue 352°. 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.76:1.

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

Values

HEX#402D35
RGBrgb(64, 45, 53)
HSLhsl(335, 17%, 21%)
OKLCHoklch(32.2% 0.031 351.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 #402D35 12.76:1 AAA Lc -102.2 Preferred for body text
Black text on #402D35 1.64:1 Fails Lc 0.0 Not readable
#402D35 text on white 12.76:1 AAA Lc 98.8 Preferred for body text
#402D35 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

    #F0E7EA

    oklch(93.6% 0.011 354.9)

  3. Step 200

    200

    #E5D4DA

    oklch(88.5% 0.02 354.1)

  4. Step 300

    300

    #D4B7C3

    oklch(80.8% 0.037 351.1)

  5. Step 400

    400

    #BE92A4

    oklch(70.7% 0.058 352.3)

  6. Step 500

    500

    #AD778E

    oklch(63.1% 0.074 352.2)

  7. Step 600

    600

    #985F78

    oklch(55.6% 0.081 352.2)

  8. Step 700

    700

    #814E65

    oklch(49% 0.075 351.7)

  9. Step 800

    800

    #694053

    oklch(42.6% 0.063 350.8)

  10. Step 900

    900

    #563744

    oklch(37.8% 0.048 352.9)

  11. Step 950

    950 (this color)

    #402D35

    oklch(32.2% 0.031 351.9)

Export this scale for Tailwind in the Tailwind colors tool

#402D35 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)#2F30350.032
Deuteranopia (no green cones)#3333350.029
Tritanopia (no blue cones)#432C300.010
Achromatopsia (no color)#3232320.031

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D35

    #402D35

    oklch(32.2% 0.031 351.9)

  • #233932

    #233932

    oklch(32.4% 0.031 172.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D35

    #402D35

    oklch(32.2% 0.031 351.9)

  • #3B2E3D

    #3B2E3D

    oklch(32.2% 0.032 321.9)

  • #422D2C

    #422D2C

    oklch(32.2% 0.031 22)

Open the analogous palette in the generator

Split complementary

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

  • #402D35

    #402D35

    oklch(32.2% 0.031 351.9)

  • #2B3829

    #2B3829

    oklch(32.4% 0.031 141.3)

  • #20383A

    #20383A

    oklch(32.2% 0.03 202.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D35

    #402D35

    oklch(32.2% 0.031 351.9)

  • #343523

    #343523

    oklch(32.2% 0.03 110.6)

  • #233640

    #233640

    oklch(32.1% 0.03 231.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D35

    #402D35

    oklch(32.2% 0.031 351.9)

  • #3B3221

    #3B3221

    oklch(32.2% 0.031 83)

  • #233932

    #233932

    oklch(32.4% 0.031 172.3)

  • #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 #402D35, closest first.

Similar named colors

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

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