#402C28

Closest named color: Onyx (#343A40). oklch(31.6% 0.031 31.6), rgb(64, 44, 40).

Aa

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

About this color

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

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

Values

HEX#402C28
RGBrgb(64, 44, 40)
HSLhsl(10, 23%, 20%)
OKLCHoklch(31.6% 0.031 31.6)

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 #402C28 13.05:1 AAA Lc -102.5 Preferred for body text
Black text on #402C28 1.60:1 Fails Lc 0.0 Not readable
#402C28 text on white 13.05:1 AAA Lc 99.3 Preferred for body text
#402C28 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

    #F9F4F3

    oklch(97.1% 0.006 31.1)

  2. Step 100

    100

    #F1E7E5

    oklch(93.5% 0.011 31.1)

  3. Step 200

    200

    #E6D5D1

    oklch(88.6% 0.02 33.4)

  4. Step 300

    300

    #D7B9B2

    oklch(81% 0.036 33.3)

  5. Step 400

    400

    #C2948A

    oklch(70.7% 0.058 32.5)

  6. Step 500

    500

    #B2796D

    oklch(63.1% 0.074 32.3)

  7. Step 600

    600

    #9D6155

    oklch(55.6% 0.081 32)

  8. Step 700

    700

    #865046

    oklch(49.1% 0.075 31.2)

  9. Step 800

    800

    #6D4239

    oklch(42.7% 0.062 32.5)

  10. Step 900

    900

    #593831

    oklch(37.8% 0.049 32.5)

  11. Step 950

    950 (this color)

    #402C28

    oklch(31.6% 0.031 31.6)

Export this scale for Tailwind in the Tailwind colors tool

#402C28 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)#302E280.031
Deuteranopia (no green cones)#3532280.027
Tritanopia (no blue cones)#44292B0.014
Achromatopsia (no color)#3131310.031

Harmonies

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

Complementary

The opposite hue (180°).

  • #402C28

    #402C28

    oklch(31.6% 0.031 31.6)

  • #1E363B

    #1E363B

    oklch(31.5% 0.031 212.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402C28

    #402C28

    oklch(31.6% 0.031 31.6)

  • #3F2B31

    #3F2B31

    oklch(31.5% 0.031 359.4)

  • #3D2E22

    #3D2E22

    oklch(31.5% 0.03 60.1)

Open the analogous palette in the generator

Split complementary

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

  • #402C28

    #402C28

    oklch(31.6% 0.031 31.6)

  • #1F3733

    #1F3733

    oklch(31.6% 0.031 182.5)

  • #243440

    #243440

    oklch(31.6% 0.03 241.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402C28

    #402C28

    oklch(31.6% 0.031 31.6)

  • #26362A

    #26362A

    oklch(31.5% 0.03 152.1)

  • #2C3142

    #2C3142

    oklch(31.6% 0.031 271.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402C28

    #402C28

    oklch(31.6% 0.031 31.6)

  • #2F3423

    #2F3423

    oklch(31.5% 0.03 121.4)

  • #1E363B

    #1E363B

    oklch(31.5% 0.031 212.4)

  • #342E3F

    #342E3F

    oklch(31.5% 0.031 300.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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