#402A2A

Closest named color: Gunmetal (#293241). oklch(31.2% 0.033 19.1), rgb(64, 42, 42).

Aa

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

About this color

#402A2A is a dark, muted red. In OKLCH its lightness is 31%, its chroma 0.033 and its hue 19°. Its hue sits on the warm side of the wheel. The nearest named color is Gunmetal (#293241), ΔE 0.054 away. White text reads best on it, at 13.26:1.

Hue familyReds
Lightnessdark (31%)
Chromamuted (0.033)
Temperaturewarm
Nearest nameGunmetal (#293241)
Black text1.58:1
White text13.26:1

Values

HEX#402A2A
RGBrgb(64, 42, 42)
HSLhsl(0, 21%, 21%)
OKLCHoklch(31.2% 0.033 19.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 #402A2A 13.26:1 AAA Lc -102.8 Preferred for body text
Black text on #402A2A 1.58:1 Fails Lc 0.0 Not readable
#402A2A text on white 13.26:1 AAA Lc 99.6 Preferred for body text
#402A2A text on black 1.58: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

    #F1E7E7

    oklch(93.6% 0.011 17.4)

  3. Step 200

    200

    #E7D4D3

    oklch(88.5% 0.021 21.2)

  4. Step 300

    300

    #D9B7B7

    oklch(80.9% 0.039 18)

  5. Step 400

    400

    #C59191

    oklch(70.7% 0.063 18.8)

  6. Step 500

    500

    #B57676

    oklch(63.2% 0.08 19.5)

  7. Step 600

    600

    #A05E5F

    oklch(55.7% 0.086 19.2)

  8. Step 700

    700

    #894D4E

    oklch(49.1% 0.081 19.4)

  9. Step 800

    800

    #6F3F40

    oklch(42.6% 0.067 18.9)

  10. Step 900

    900

    #5A3636

    oklch(37.6% 0.052 19.8)

  11. Step 950

    950 (this color)

    #402A2A

    oklch(31.2% 0.033 19.1)

Export this scale for Tailwind in the Tailwind colors tool

#402A2A 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)#2E2D2A0.035
Deuteranopia (no green cones)#33312A0.032
Tritanopia (no blue cones)#44282A0.010
Achromatopsia (no color)#3030300.033

Harmonies

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

Complementary

The opposite hue (180°).

  • #402A2A

    #402A2A

    oklch(31.2% 0.033 19.1)

  • #1B3637

    #1B3637

    oklch(31.2% 0.033 198.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402A2A

    #402A2A

    oklch(31.2% 0.033 19.1)

  • #3E2A33

    #3E2A33

    oklch(31.2% 0.033 350.5)

  • #3F2C22

    #3F2C22

    oklch(31.3% 0.033 48.8)

Open the analogous palette in the generator

Split complementary

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

  • #402A2A

    #402A2A

    oklch(31.2% 0.033 19.1)

  • #1F362E

    #1F362E

    oklch(31.1% 0.033 170.1)

  • #1E343E

    #1E343E

    oklch(31.1% 0.033 228.5)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402A2A

    #402A2A

    oklch(31.2% 0.033 19.1)

  • #283525

    #283525

    oklch(31.2% 0.033 139.8)

  • #273142

    #273142

    oklch(31.2% 0.034 260.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402A2A

    #402A2A

    oklch(31.2% 0.033 19.1)

  • #32321E

    #32321E

    oklch(31.1% 0.033 108.2)

  • #1B3637

    #1B3637

    oklch(31.2% 0.033 198.7)

  • #302E41

    #302E41

    oklch(31.2% 0.034 289.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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