#332147

Closest named color: Space Cadet (#2B2D42). oklch(28.9% 0.07 304.2), rgb(51, 33, 71).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (29%)
Chromamuted (0.070)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.44:1
White text14.48:1

Values

HEX#332147
RGBrgb(51, 33, 71)
HSLhsl(268, 37%, 20%)
OKLCHoklch(28.9% 0.07 304.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 #332147 14.48:1 AAA Lc -104.1 Preferred for body text
Black text on #332147 1.44:1 Fails Lc 0.0 Not readable
#332147 text on white 14.48:1 AAA Lc 101.1 Preferred for body text
#332147 text on black 1.44: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

    #F7F4FC

    oklch(97.2% 0.011 303.1)

  2. Step 100

    100

    #EDE6F7

    oklch(93.5% 0.024 304.5)

  3. Step 200

    200

    #E0D2F2

    oklch(88.5% 0.046 305.2)

  4. Step 300

    300

    #CCB4ED

    oklch(81% 0.083 303.8)

  5. Step 400

    400

    #B38AE3

    oklch(70.6% 0.133 304.4)

  6. Step 500

    500

    #A16ADB

    oklch(63.1% 0.17 304.5)

  7. Step 600

    600

    #8C4FC8

    oklch(55.6% 0.183 304.3)

  8. Step 700

    700

    #773FAD

    oklch(49.1% 0.17 304.2)

  9. Step 800

    800

    #61358C

    oklch(42.8% 0.141 304.4)

  10. Step 900

    900

    #4F2F70

    oklch(37.7% 0.11 304.4)

  11. Step 950

    950 (this color)

    #332147

    oklch(28.9% 0.07 304.2)

Export this scale for Tailwind in the Tailwind colors tool

#332147 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)#1629480.051
Deuteranopia (no green cones)#1B29460.046
Tritanopia (no blue cones)#3028300.053
Achromatopsia (no color)#2929290.070

Harmonies

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

Complementary

The opposite hue (180°).

  • #332147

    #332147

    oklch(28.9% 0.07 304.2)

  • #243102

    #243102

    oklch(29.1% 0.07 124.4)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #332147

    #332147

    oklch(28.9% 0.07 304.2)

  • #21274E

    #21274E

    oklch(28.9% 0.071 274.5)

  • #3F1C39

    #3F1C39

    oklch(28.8% 0.07 334)

Open the analogous palette in the generator

Split complementary

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

  • #332147

    #332147

    oklch(28.9% 0.07 304.2)

  • #352A00

    #352A00

    oklch(28.9% 0.059 93.5)

  • #03351A

    #03351A

    oklch(29% 0.071 153.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #332147

    #332147

    oklch(28.9% 0.07 304.2)

  • #412300

    #412300

    oklch(29% 0.065 64.5)

  • #00332E

    #00332E

    oklch(28.9% 0.051 184.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #332147

    #332147

    oklch(28.9% 0.07 304.2)

  • #481C12

    #481C12

    oklch(29% 0.07 34.2)

  • #243102

    #243102

    oklch(29.1% 0.07 124.4)

  • #00313B

    #00313B

    oklch(28.8% 0.051 215.8)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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