#402B29

Closest named color: Onyx (#343A40). oklch(31.4% 0.032 25.1), rgb(64, 43, 41).

Aa

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

About this color

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

Hue familyReds
Lightnessdark (31%)
Chromamuted (0.032)
Temperaturewarm
Nearest nameOnyx (#343A40)
Black text1.59:1
White text13.16:1

Values

HEX#402B29
RGBrgb(64, 43, 41)
HSLhsl(5, 22%, 21%)
OKLCHoklch(31.4% 0.032 25.1)

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 #402B29 13.16:1 AAA Lc -102.7 Preferred for body text
Black text on #402B29 1.59:1 Fails Lc 0.0 Not readable
#402B29 text on white 13.16:1 AAA Lc 99.4 Preferred for body text
#402B29 text on black 1.59: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

    #F1E7E6

    oklch(93.6% 0.011 24.3)

  3. Step 200

    200

    #E7D4D2

    oklch(88.5% 0.021 24.8)

  4. Step 300

    300

    #D8B8B4

    oklch(80.9% 0.037 26.4)

  5. Step 400

    400

    #C4938E

    oklch(70.8% 0.06 25.3)

  6. Step 500

    500

    #B37772

    oklch(63% 0.076 24.7)

  7. Step 600

    600

    #9F5F5A

    oklch(55.6% 0.085 24.9)

  8. Step 700

    700

    #874F4A

    oklch(49.1% 0.076 25.7)

  9. Step 800

    800

    #6E413D

    oklch(42.8% 0.064 25.5)

  10. Step 900

    900

    #593734

    oklch(37.7% 0.049 25.2)

  11. Step 950

    950 (this color)

    #402B29

    oklch(31.4% 0.032 25.1)

Export this scale for Tailwind in the Tailwind colors tool

#402B29 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)#2F2E290.033
Deuteranopia (no green cones)#3432290.031
Tritanopia (no blue cones)#44292B0.011
Achromatopsia (no color)#3030300.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #402B29

    #402B29

    oklch(31.4% 0.032 25.1)

  • #1D3639

    #1D3639

    oklch(31.4% 0.031 205.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402B29

    #402B29

    oklch(31.4% 0.032 25.1)

  • #3E2B32

    #3E2B32

    oklch(31.4% 0.03 355.1)

  • #3E2D22

    #3E2D22

    oklch(31.4% 0.031 54.2)

Open the analogous palette in the generator

Split complementary

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

  • #402B29

    #402B29

    oklch(31.4% 0.032 25.1)

  • #1F3730

    #1F3730

    oklch(31.5% 0.033 173.6)

  • #21343F

    #21343F

    oklch(31.4% 0.032 234.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402B29

    #402B29

    oklch(31.4% 0.032 25.1)

  • #273627

    #273627

    oklch(31.4% 0.033 144.7)

  • #293142

    #293142

    oklch(31.3% 0.033 265)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402B29

    #402B29

    oklch(31.4% 0.032 25.1)

  • #303321

    #303321

    oklch(31.3% 0.031 115.9)

  • #1D3639

    #1D3639

    oklch(31.4% 0.031 205.5)

  • #322E40

    #322E40

    oklch(31.3% 0.032 294.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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