#402A2F

Closest named color: Space Cadet (#2B2D42). oklch(31.3% 0.034 4.3), rgb(64, 42, 47).

Aa

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

About this color

#402A2F is a dark, muted red. In OKLCH its lightness is 31%, its chroma 0.034 and its hue 4°. Its hue sits on the warm side of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.049 away. White text reads best on it, at 13.20:1.

Hue familyReds
Lightnessdark (31%)
Chromamuted (0.034)
Temperaturewarm
Nearest nameSpace Cadet (#2B2D42)
Black text1.59:1
White text13.20:1

Values

HEX#402A2F
RGBrgb(64, 42, 47)
HSLhsl(346, 21%, 21%)
OKLCHoklch(31.3% 0.034 4.3)

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 #402A2F 13.20:1 AAA Lc -102.7 Preferred for body text
Black text on #402A2F 1.59:1 Fails Lc 0.0 Not readable
#402A2F text on white 13.20:1 AAA Lc 99.5 Preferred for body text
#402A2F 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

    #F9F4F5

    oklch(97.1% 0.006 3.3)

  2. Step 100

    100

    #F1E7E9

    oklch(93.6% 0.011 3.5)

  3. Step 200

    200

    #E7D3D7

    oklch(88.4% 0.023 3.9)

  4. Step 300

    300

    #D8B6BD

    oklch(80.8% 0.04 4.1)

  5. Step 400

    400

    #C4909C

    oklch(70.7% 0.065 3.6)

  6. Step 500

    500

    #B47483

    oklch(63.1% 0.083 4.4)

  7. Step 600

    600

    #9F5C6D

    oklch(55.6% 0.09 4.1)

  8. Step 700

    700

    #874C5B

    oklch(49.1% 0.082 4.2)

  9. Step 800

    800

    #6E3E4A

    oklch(42.6% 0.069 4.3)

  10. Step 900

    900

    #59353E

    oklch(37.6% 0.053 3.7)

  11. Step 950

    950 (this color)

    #402A2F

    oklch(31.3% 0.034 4.3)

Export this scale for Tailwind in the Tailwind colors tool

#402A2F 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)#2D2E2F0.037
Deuteranopia (no green cones)#32312F0.033
Tritanopia (no blue cones)#44292C0.009
Achromatopsia (no color)#3030300.034

Harmonies

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

Complementary

The opposite hue (180°).

  • #402A2F

    #402A2F

    oklch(31.3% 0.034 4.3)

  • #1C3733

    #1C3733

    oklch(31.4% 0.034 183.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402A2F

    #402A2F

    oklch(31.3% 0.034 4.3)

  • #3C2B38

    #3C2B38

    oklch(31.4% 0.033 334.9)

  • #412B26

    #412B26

    oklch(31.4% 0.034 33.3)

Open the analogous palette in the generator

Split complementary

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

  • #402A2F

    #402A2F

    oklch(31.3% 0.034 4.3)

  • #233629

    #233629

    oklch(31.2% 0.034 154.1)

  • #1C363C

    #1C363C

    oklch(31.5% 0.034 214.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402A2F

    #402A2F

    oklch(31.3% 0.034 4.3)

  • #2D3421

    #2D3421

    oklch(31.2% 0.034 124.7)

  • #223341

    #223341

    oklch(31.3% 0.034 244)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402A2F

    #402A2F

    oklch(31.3% 0.034 4.3)

  • #37311D

    #37311D

    oklch(31.4% 0.034 93.3)

  • #1C3733

    #1C3733

    oklch(31.4% 0.034 183.6)

  • #2C3042

    #2C3042

    oklch(31.3% 0.033 274.6)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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