#402A28

Closest named color: Onyx (#343A40). oklch(31.1% 0.033 25), rgb(64, 42, 40).

Aa

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

About this color

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

Hue familyReds
Lightnessdark (31%)
Chromamuted (0.033)
Temperaturewarm
Nearest nameOnyx (#343A40)
Black text1.57:1
White text13.29:1

Values

HEX#402A28
RGBrgb(64, 42, 40)
HSLhsl(5, 23%, 20%)
OKLCHoklch(31.1% 0.033 25)

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 #402A28 13.29:1 AAA Lc -102.8 Preferred for body text
Black text on #402A28 1.57:1 Fails Lc 0.0 Not readable
#402A28 text on white 13.29:1 AAA Lc 99.6 Preferred for body text
#402A28 text on black 1.57: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

    #D9B7B4

    oklch(80.8% 0.04 23.9)

  5. Step 400

    400

    #C5928D

    oklch(70.7% 0.063 25.1)

  6. Step 500

    500

    #B57671

    oklch(63% 0.08 24.6)

  7. Step 600

    600

    #A05E59

    oklch(55.5% 0.087 24.9)

  8. Step 700

    700

    #894D49

    oklch(49% 0.082 24.5)

  9. Step 800

    800

    #70403C

    oklch(42.8% 0.068 25.4)

  10. Step 900

    900

    #5A3633

    oklch(37.6% 0.052 25)

  11. Step 950

    950 (this color)

    #402A28

    oklch(31.1% 0.033 25)

Export this scale for Tailwind in the Tailwind colors tool

#402A28 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)#2E2D280.035
Deuteranopia (no green cones)#3431280.031
Tritanopia (no blue cones)#45272A0.014
Achromatopsia (no color)#3030300.033

Harmonies

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

Complementary

The opposite hue (180°).

  • #402A28

    #402A28

    oklch(31.1% 0.033 25)

  • #1B3639

    #1B3639

    oklch(31.3% 0.033 204.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402A28

    #402A28

    oklch(31.1% 0.033 25)

  • #3E2A31

    #3E2A31

    oklch(31.1% 0.032 356.4)

  • #3E2C20

    #3E2C20

    oklch(31.1% 0.034 54.8)

Open the analogous palette in the generator

Split complementary

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

  • #402A28

    #402A28

    oklch(31.1% 0.033 25)

  • #1D3630

    #1D3630

    oklch(31% 0.033 176.9)

  • #1F333F

    #1F333F

    oklch(31% 0.034 235.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402A28

    #402A28

    oklch(31.1% 0.033 25)

  • #263526

    #263526

    oklch(31.1% 0.033 144.7)

  • #283042

    #283042

    oklch(31% 0.034 265.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402A28

    #402A28

    oklch(31.1% 0.033 25)

  • #30331F

    #30331F

    oklch(31.2% 0.034 115.3)

  • #1B3639

    #1B3639

    oklch(31.3% 0.033 204.8)

  • #322D40

    #322D40

    oklch(31.1% 0.034 296.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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