#402035

Closest named color: Space Cadet (#2B2D42). oklch(29.5% 0.059 341.5), rgb(64, 32, 53).

Aa

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

About this color

#402035 is a dark, muted purple. In OKLCH its lightness is 30%, its chroma 0.059 and its hue 341°. Its hue sits on the warm side of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.053 away. White text reads best on it, at 14.22:1.

Hue familyPurples
Lightnessdark (30%)
Chromamuted (0.059)
Temperaturewarm
Nearest nameSpace Cadet (#2B2D42)
Black text1.47:1
White text14.22:1

Values

HEX#402035
RGBrgb(64, 32, 53)
HSLhsl(321, 33%, 19%)
OKLCHoklch(29.5% 0.059 341.5)

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 #402035 14.22:1 AAA Lc -103.8 Preferred for body text
Black text on #402035 1.47:1 Fails Lc 0.0 Not readable
#402035 text on white 14.22:1 AAA Lc 100.8 Preferred for body text
#402035 text on black 1.47: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

    #FAF3F7

    oklch(97.1% 0.009 341.8)

  2. Step 100

    100

    #F4E5EE

    oklch(93.6% 0.02 340.7)

  3. Step 200

    200

    #ECD0E0

    oklch(88.6% 0.038 342.6)

  4. Step 300

    300

    #E1AFCE

    oklch(80.9% 0.071 341.1)

  5. Step 400

    400

    #D084B5

    oklch(70.7% 0.112 341.3)

  6. Step 500

    500

    #C163A2

    oklch(63% 0.142 341.3)

  7. Step 600

    600

    #AC488D

    oklch(55.5% 0.154 341.3)

  8. Step 700

    700

    #943978

    oklch(49.2% 0.143 341.5)

  9. Step 800

    800

    #783061

    oklch(42.7% 0.118 341.8)

  10. Step 900

    900

    #612B50

    oklch(37.7% 0.093 340.9)

  11. Step 950

    950 (this color)

    #402035

    oklch(29.5% 0.059 341.5)

Export this scale for Tailwind in the Tailwind colors tool

#402035 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)#2228360.060
Deuteranopia (no green cones)#2A2D340.056
Tritanopia (no blue cones)#4320280.025
Achromatopsia (no color)#2B2B2B0.059

Harmonies

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

Complementary

The opposite hue (180°).

  • #402035

    #402035

    oklch(29.5% 0.059 341.5)

  • #083523

    #083523

    oklch(29.4% 0.058 161.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402035

    #402035

    oklch(29.5% 0.059 341.5)

  • #362342

    #362342

    oklch(29.4% 0.06 311.4)

  • #451F25

    #451F25

    oklch(29.5% 0.059 11.4)

Open the analogous palette in the generator

Split complementary

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

  • #402035

    #402035

    oklch(29.5% 0.059 341.5)

  • #223211

    #223211

    oklch(29.4% 0.058 130.8)

  • #003433

    #003433

    oklch(29.4% 0.05 192.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402035

    #402035

    oklch(29.5% 0.059 341.5)

  • #332D03

    #332D03

    oklch(29.5% 0.058 100.9)

  • #003240

    #003240

    oklch(29.4% 0.055 222.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402035

    #402035

    oklch(29.5% 0.059 341.5)

  • #3F2705

    #3F2705

    oklch(29.6% 0.059 70.8)

  • #083523

    #083523

    oklch(29.4% 0.058 161.8)

  • #142E49

    #142E49

    oklch(29.5% 0.059 251.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #402035 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.