#402234

Closest named color: Space Cadet (#2B2D42). oklch(29.9% 0.053 344), rgb(64, 34, 52).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (30%)
Chromamuted (0.053)
Temperaturewarm
Nearest nameSpace Cadet (#2B2D42)
Black text1.49:1
White text14.03:1

Values

HEX#402234
RGBrgb(64, 34, 52)
HSLhsl(324, 31%, 19%)
OKLCHoklch(29.9% 0.053 344)

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 #402234 14.03:1 AAA Lc -103.6 Preferred for body text
Black text on #402234 1.49:1 Fails Lc 0.0 Not readable
#402234 text on white 14.03:1 AAA Lc 100.6 Preferred for body text
#402234 text on black 1.49: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

    #F3E5ED

    oklch(93.5% 0.018 342)

  3. Step 200

    200

    #EBD0DF

    oklch(88.4% 0.036 343.3)

  4. Step 300

    300

    #DFB1CB

    oklch(80.9% 0.063 343.7)

  5. Step 400

    400

    #CD87B0

    oklch(70.7% 0.1 344)

  6. Step 500

    500

    #BF679D

    oklch(63.1% 0.13 343.8)

  7. Step 600

    600

    #AA4D87

    oklch(55.7% 0.14 344.3)

  8. Step 700

    700

    #913D73

    oklch(49% 0.131 343.6)

  9. Step 800

    800

    #76335D

    oklch(42.6% 0.108 344.2)

  10. Step 900

    900

    #602D4C

    oklch(37.7% 0.085 344.6)

  11. Step 950

    950 (this color)

    #402234

    oklch(29.9% 0.053 344)

Export this scale for Tailwind in the Tailwind colors tool

#402234 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)#2429350.056
Deuteranopia (no green cones)#2C2D330.050
Tritanopia (no blue cones)#4422290.022
Achromatopsia (no color)#2C2C2C0.054

Harmonies

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

Complementary

The opposite hue (180°).

  • #402234

    #402234

    oklch(29.9% 0.053 344)

  • #0D3626

    #0D3626

    oklch(29.9% 0.054 163.6)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #402234

    #402234

    oklch(29.9% 0.053 344)

  • #372540

    #372540

    oklch(29.8% 0.053 313.9)

  • #442125

    #442125

    oklch(29.7% 0.054 13.6)

Open the analogous palette in the generator

Split complementary

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

  • #402234

    #402234

    oklch(29.9% 0.053 344)

  • #223317

    #223317

    oklch(29.8% 0.052 134.2)

  • #003535

    #003535

    oklch(29.8% 0.051 194.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #402234

    #402234

    oklch(29.9% 0.053 344)

  • #322F0A

    #322F0A

    oklch(30% 0.054 104.7)

  • #043341

    #043341

    oklch(29.9% 0.053 223.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #402234

    #402234

    oklch(29.9% 0.053 344)

  • #3D290A

    #3D290A

    oklch(29.8% 0.053 74.6)

  • #0D3626

    #0D3626

    oklch(29.9% 0.054 163.6)

  • #1A2E48

    #1A2E48

    oklch(29.8% 0.054 255.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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