#402D3F

Closest named color: Space Cadet (#2B2D42). oklch(32.6% 0.041 328.2), rgb(64, 45, 63).

Aa

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

About this color

#402D3F is a dark, muted purple. In OKLCH its lightness is 33%, its chroma 0.041 and its hue 328°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.039 away. White text reads best on it, at 12.61:1.

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.041)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.66:1
White text12.61:1

Values

HEX#402D3F
RGBrgb(64, 45, 63)
HSLhsl(303, 17%, 21%)
OKLCHoklch(32.6% 0.041 328.2)

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 #402D3F 12.61:1 AAA Lc -101.9 Preferred for body text
Black text on #402D3F 1.66:1 Fails Lc 0.0 Not readable
#402D3F text on white 12.61:1 AAA Lc 98.6 Preferred for body text
#402D3F text on black 1.66: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 900.

  1. Step 50

    50

    #F7F4F7

    oklch(97% 0.005 325.6)

  2. Step 100

    100

    #EDE8ED

    oklch(93.6% 0.009 325.6)

  3. Step 200

    200

    #E0D5DF

    oklch(88.5% 0.018 328.5)

  4. Step 300

    300

    #CCBACB

    oklch(80.9% 0.031 327.6)

  5. Step 400

    400

    #B296B0

    oklch(70.7% 0.049 328.4)

  6. Step 500

    500

    #9F7C9D

    oklch(63.1% 0.063 328.2)

  7. Step 600

    600

    #896587

    oklch(55.5% 0.067 328.3)

  8. Step 700

    700

    #745473

    oklch(49.1% 0.062 327.5)

  9. Step 800

    800

    #5F455D

    oklch(42.7% 0.051 329)

  10. Step 900

    900 (this color)

    #402D3F

    oklch(32.6% 0.041 328.2)

  11. Step 950

    950

    #2D222D

    oklch(26.9% 0.026 326.3)

Export this scale for Tailwind in the Tailwind colors tool

#402D3F 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)#2C32400.037
Deuteranopia (no green cones)#30343E0.035
Tritanopia (no blue cones)#412E330.023
Achromatopsia (no color)#3333330.041

Harmonies

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

Complementary

The opposite hue (180°).

  • #402D3F

    #402D3F

    oklch(32.6% 0.041 328.2)

  • #263A29

    #263A29

    oklch(32.6% 0.039 148.5)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402D3F

    #402D3F

    oklch(32.6% 0.041 328.2)

  • #373047

    #373047

    oklch(32.7% 0.041 298.1)

  • #462C34

    #462C34

    oklch(32.8% 0.04 359.5)

Open the analogous palette in the generator

Split complementary

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

  • #402D3F

    #402D3F

    oklch(32.6% 0.041 328.2)

  • #32371F

    #32371F

    oklch(32.5% 0.04 118.3)

  • #1B3B34

    #1B3B34

    oklch(32.5% 0.04 177.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402D3F

    #402D3F

    oklch(32.6% 0.041 328.2)

  • #3D331B

    #3D331B

    oklch(32.5% 0.041 87.5)

  • #183A3F

    #183A3F

    oklch(32.5% 0.04 208.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402D3F

    #402D3F

    oklch(32.6% 0.041 328.2)

  • #442F1F

    #442F1F

    oklch(32.5% 0.041 58)

  • #263A29

    #263A29

    oklch(32.6% 0.039 148.5)

  • #203847

    #203847

    oklch(32.8% 0.04 237.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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