#332040

Closest named color: Space Cadet (#2B2D42). oklch(28.3% 0.062 310.3), rgb(51, 32, 64).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (28%)
Chromamuted (0.062)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.42:1
White text14.77:1

Values

HEX#332040
RGBrgb(51, 32, 64)
HSLhsl(276, 33%, 19%)
OKLCHoklch(28.3% 0.062 310.3)

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 #332040 14.77:1 AAA Lc -104.4 Preferred for body text
Black text on #332040 1.42:1 Fails Lc 0.0 Not readable
#332040 text on white 14.77:1 AAA Lc 101.5 Preferred for body text
#332040 text on black 1.42: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

    #F7F4FA

    oklch(97.1% 0.009 308.4)

  2. Step 100

    100

    #EEE6F5

    oklch(93.6% 0.022 309.6)

  3. Step 200

    200

    #E1D2EE

    oklch(88.4% 0.041 309.4)

  4. Step 300

    300

    #CFB4E4

    oklch(80.9% 0.072 310.1)

  5. Step 400

    400

    #B78BD7

    oklch(70.6% 0.118 310.1)

  6. Step 500

    500

    #A56CCC

    oklch(63% 0.15 310.1)

  7. Step 600

    600

    #9152B8

    oklch(55.6% 0.162 310.7)

  8. Step 700

    700

    #7B429F

    oklch(49.1% 0.151 310.3)

  9. Step 800

    800

    #643781

    oklch(42.7% 0.125 310.2)

  10. Step 900

    900

    #523067

    oklch(37.7% 0.098 311.1)

  11. Step 950

    950 (this color)

    #332040

    oklch(28.3% 0.062 310.3)

Export this scale for Tailwind in the Tailwind colors tool

#332040 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)#1927410.048
Deuteranopia (no green cones)#1E283F0.043
Tritanopia (no blue cones)#31252D0.043
Achromatopsia (no color)#2828280.062

Harmonies

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

Complementary

The opposite hue (180°).

  • #332040

    #332040

    oklch(28.3% 0.062 310.3)

  • #1F2F0B

    #1F2F0B

    oklch(28.2% 0.061 129.9)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #332040

    #332040

    oklch(28.3% 0.062 310.3)

  • #242547

    #242547

    oklch(28.2% 0.062 280.4)

  • #3D1C33

    #3D1C33

    oklch(28.2% 0.062 339.8)

Open the analogous palette in the generator

Split complementary

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

  • #332040

    #332040

    oklch(28.3% 0.062 310.3)

  • #302A00

    #302A00

    oklch(28.3% 0.059 101)

  • #02331F

    #02331F

    oklch(28.4% 0.062 160.2)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #332040

    #332040

    oklch(28.3% 0.062 310.3)

  • #3C2300

    #3C2300

    oklch(28.2% 0.061 70.2)

  • #00312F

    #00312F

    oklch(28.3% 0.049 190.4)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #332040

    #332040

    oklch(28.3% 0.062 310.3)

  • #421E10

    #421E10

    oklch(28.3% 0.061 41.3)

  • #1F2F0B

    #1F2F0B

    oklch(28.2% 0.061 129.9)

  • #002F3B

    #002F3B

    oklch(28.2% 0.051 220.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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