#402135

Closest named color: Space Cadet (#2B2D42). oklch(29.7% 0.056 341.9), rgb(64, 33, 53).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (30%)
Chromamuted (0.056)
Temperaturewarm
Nearest nameSpace Cadet (#2B2D42)
Black text1.48:1
White text14.12:1

Values

HEX#402135
RGBrgb(64, 33, 53)
HSLhsl(321, 32%, 19%)
OKLCHoklch(29.7% 0.056 341.9)

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 #402135 14.12:1 AAA Lc -103.7 Preferred for body text
Black text on #402135 1.48:1 Fails Lc 0.0 Not readable
#402135 text on white 14.12:1 AAA Lc 100.7 Preferred for body text
#402135 text on black 1.48: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

    #F4E5ED

    oklch(93.6% 0.019 344)

  3. Step 200

    200

    #EBD0E0

    oklch(88.5% 0.037 341.5)

  4. Step 300

    300

    #E0B0CD

    oklch(80.9% 0.067 341.8)

  5. Step 400

    400

    #CE85B3

    oklch(70.6% 0.107 341.9)

  6. Step 500

    500

    #C065A1

    oklch(63.1% 0.137 341.7)

  7. Step 600

    600

    #AB4A8B

    oklch(55.6% 0.148 342.1)

  8. Step 700

    700

    #923B76

    oklch(49% 0.137 342)

  9. Step 800

    800

    #773160

    oklch(42.6% 0.114 342.1)

  10. Step 900

    900

    #602C4F

    oklch(37.6% 0.089 341.4)

  11. Step 950

    950 (this color)

    #402135

    oklch(29.7% 0.056 341.9)

Export this scale for Tailwind in the Tailwind colors tool

#402135 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)#2328360.058
Deuteranopia (no green cones)#2B2D340.053
Tritanopia (no blue cones)#4321280.025
Achromatopsia (no color)#2B2B2B0.057

Harmonies

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

Complementary

The opposite hue (180°).

  • #402135

    #402135

    oklch(29.7% 0.056 341.9)

  • #0B3624

    #0B3624

    oklch(29.8% 0.057 161.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402135

    #402135

    oklch(29.7% 0.056 341.9)

  • #362441

    #362441

    oklch(29.6% 0.056 311.8)

  • #452026

    #452026

    oklch(29.7% 0.057 10.9)

Open the analogous palette in the generator

Split complementary

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

  • #402135

    #402135

    oklch(29.7% 0.056 341.9)

  • #223313

    #223313

    oklch(29.7% 0.057 132.2)

  • #003534

    #003534

    oklch(29.7% 0.051 192.7)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402135

    #402135

    oklch(29.7% 0.056 341.9)

  • #332E06

    #332E06

    oklch(29.8% 0.057 102)

  • #003341

    #003341

    oklch(29.8% 0.055 222.3)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402135

    #402135

    oklch(29.7% 0.056 341.9)

  • #3E2807

    #3E2807

    oklch(29.7% 0.056 72.8)

  • #0B3624

    #0B3624

    oklch(29.8% 0.057 161.4)

  • #162E48

    #162E48

    oklch(29.6% 0.056 251.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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