#402B2D

Closest named color: Onyx (#343A40). oklch(31.5% 0.031 12.7), rgb(64, 43, 45).

Aa

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

About this color

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

Hue familyReds
Lightnessdark (31%)
Chromamuted (0.031)
Temperaturewarm
Nearest nameOnyx (#343A40)
Black text1.60:1
White text13.11:1

Values

HEX#402B2D
RGBrgb(64, 43, 45)
HSLhsl(354, 20%, 21%)
OKLCHoklch(31.5% 0.031 12.7)

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 #402B2D 13.11:1 AAA Lc -102.6 Preferred for body text
Black text on #402B2D 1.60:1 Fails Lc 0.0 Not readable
#402B2D text on white 13.11:1 AAA Lc 99.4 Preferred for body text
#402B2D text on black 1.60: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

    #F9F4F4

    oklch(97.1% 0.005 17.2)

  2. Step 100

    100

    #F1E7E8

    oklch(93.6% 0.011 10.3)

  3. Step 200

    200

    #E6D4D5

    oklch(88.5% 0.02 13.7)

  4. Step 300

    300

    #D8B7BA

    oklch(80.9% 0.038 11.8)

  5. Step 400

    400

    #C39296

    oklch(70.8% 0.06 13.2)

  6. Step 500

    500

    #B2767D

    oklch(63% 0.076 11.8)

  7. Step 600

    600

    #9D5E66

    oklch(55.5% 0.083 11.9)

  8. Step 700

    700

    #864E54

    oklch(49.1% 0.076 13.3)

  9. Step 800

    800

    #6D4045

    oklch(42.7% 0.063 12.9)

  10. Step 900

    900

    #59363A

    oklch(37.6% 0.051 12.3)

  11. Step 950

    950 (this color)

    #402B2D

    oklch(31.5% 0.031 12.7)

Export this scale for Tailwind in the Tailwind colors tool

#402B2D 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)#2E2E2D0.035
Deuteranopia (no green cones)#33322D0.032
Tritanopia (no blue cones)#44292C0.009
Achromatopsia (no color)#3030300.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #402B2D

    #402B2D

    oklch(31.5% 0.031 12.7)

  • #1D3736

    #1D3736

    oklch(31.6% 0.032 192.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402B2D

    #402B2D

    oklch(31.5% 0.031 12.7)

  • #3D2B36

    #3D2B36

    oklch(31.4% 0.032 341.9)

  • #3F2C25

    #3F2C25

    oklch(31.3% 0.031 41.1)

Open the analogous palette in the generator

Split complementary

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

  • #402B2D

    #402B2D

    oklch(31.5% 0.031 12.7)

  • #23372D

    #23372D

    oklch(31.6% 0.031 162.2)

  • #1F353D

    #1F353D

    oklch(31.4% 0.031 223)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402B2D

    #402B2D

    oklch(31.5% 0.031 12.7)

  • #2B3525

    #2B3525

    oklch(31.4% 0.031 134)

  • #263341

    #263341

    oklch(31.6% 0.031 250.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402B2D

    #402B2D

    oklch(31.5% 0.031 12.7)

  • #34321F

    #34321F

    oklch(31.4% 0.032 102.9)

  • #1D3736

    #1D3736

    oklch(31.6% 0.032 192.5)

  • #2F3041

    #2F3041

    oklch(31.6% 0.03 281.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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