#402B28

Closest named color: Onyx (#343A40). oklch(31.3% 0.032 28.1), rgb(64, 43, 40).

Aa

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

About this color

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

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

Values

HEX#402B28
RGBrgb(64, 43, 40)
HSLhsl(8, 23%, 20%)
OKLCHoklch(31.3% 0.032 28.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 #402B28 13.17:1 AAA Lc -102.7 Preferred for body text
Black text on #402B28 1.59:1 Fails Lc 0.0 Not readable
#402B28 text on white 13.17:1 AAA Lc 99.4 Preferred for body text
#402B28 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

    #F9F4F3

    oklch(97.1% 0.006 31.1)

  2. Step 100

    100

    #F1E7E6

    oklch(93.6% 0.011 24.3)

  3. Step 200

    200

    #E7D4D1

    oklch(88.5% 0.022 28.3)

  4. Step 300

    300

    #D8B8B3

    oklch(80.9% 0.038 28.4)

  5. Step 400

    400

    #C4938C

    oklch(70.8% 0.061 27.9)

  6. Step 500

    500

    #B4776F

    oklch(63.1% 0.078 27.7)

  7. Step 600

    600

    #9F6057

    oklch(55.7% 0.084 28.8)

  8. Step 700

    700

    #884F47

    oklch(49.2% 0.079 28.7)

  9. Step 800

    800

    #6E413B

    oklch(42.7% 0.064 28.2)

  10. Step 900

    900

    #5A3732

    oklch(37.7% 0.051 28.6)

  11. Step 950

    950 (this color)

    #402B28

    oklch(31.3% 0.032 28.1)

Export this scale for Tailwind in the Tailwind colors tool

#402B28 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)#2F2E280.033
Deuteranopia (no green cones)#3432280.031
Tritanopia (no blue cones)#45282A0.014
Achromatopsia (no color)#3030300.032

Harmonies

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

Complementary

The opposite hue (180°).

  • #402B28

    #402B28

    oklch(31.3% 0.032 28.1)

  • #1C363A

    #1C363A

    oklch(31.4% 0.033 208.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402B28

    #402B28

    oklch(31.3% 0.032 28.1)

  • #3F2A31

    #3F2A31

    oklch(31.3% 0.033 357.5)

  • #3E2D21

    #3E2D21

    oklch(31.3% 0.032 56.4)

Open the analogous palette in the generator

Split complementary

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

  • #402B28

    #402B28

    oklch(31.3% 0.032 28.1)

  • #1E3731

    #1E3731

    oklch(31.4% 0.033 177)

  • #213440

    #213440

    oklch(31.4% 0.033 236.9)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402B28

    #402B28

    oklch(31.3% 0.032 28.1)

  • #263628

    #263628

    oklch(31.4% 0.033 148.1)

  • #2A3142

    #2A3142

    oklch(31.4% 0.032 267.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402B28

    #402B28

    oklch(31.3% 0.032 28.1)

  • #2F3321

    #2F3321

    oklch(31.2% 0.031 118.4)

  • #1C363A

    #1C363A

    oklch(31.4% 0.033 208.3)

  • #332E3F

    #332E3F

    oklch(31.4% 0.031 298.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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