#332F52

Closest named color: Space Cadet (#2B2D42). oklch(32.7% 0.061 287.8), rgb(51, 47, 82).

Aa

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

About this color

#332F52 is a dark, muted purple. In OKLCH its lightness is 33%, its chroma 0.061 and its hue 288°. Its hue sits on the cool side of the wheel. The nearest named color is Space Cadet (#2B2D42), ΔE 0.033 away. White text reads best on it, at 12.58:1.

Hue familyPurples
Lightnessdark (33%)
Chromamuted (0.061)
Temperaturecool
Nearest nameSpace Cadet (#2B2D42)
Black text1.66:1
White text12.58:1

Values

HEX#332F52
RGBrgb(51, 47, 82)
HSLhsl(247, 27%, 25%)
OKLCHoklch(32.7% 0.061 287.8)

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 #332F52 12.58:1 AAA Lc -101.9 Preferred for body text
Black text on #332F52 1.66:1 Fails Lc 0.0 Not readable
#332F52 text on white 12.58:1 AAA Lc 98.5 Preferred for body text
#332F52 text on black 1.66: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 900.

  1. Step 50

    50

    #F5F5F9

    oklch(97.1% 0.005 286.3)

  2. Step 100

    100

    #E9E9F2

    oklch(93.7% 0.012 286.2)

  3. Step 200

    200

    #D8D7EA

    oklch(88.6% 0.026 288.3)

  4. Step 300

    300

    #BEBDDD

    oklch(81% 0.045 286.8)

  5. Step 400

    400

    #9E9ACC

    oklch(70.8% 0.073 288.1)

  6. Step 500

    500

    #8680BF

    oklch(63% 0.094 287.8)

  7. Step 600

    600

    #7069AB

    oklch(55.6% 0.101 287.5)

  8. Step 700

    700

    #5E5793

    oklch(49% 0.095 287.7)

  9. Step 800

    800

    #4D4777

    oklch(42.6% 0.078 288.3)

  10. Step 900

    900 (this color)

    #332F52

    oklch(32.7% 0.061 287.8)

  11. Step 950

    950

    #252338

    oklch(26.9% 0.039 287.9)

Export this scale for Tailwind in the Tailwind colors tool

#332F52 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)#2434530.026
Deuteranopia (no green cones)#2432510.025
Tritanopia (no blue cones)#2B363C0.053
Achromatopsia (no color)#3333330.061

Harmonies

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

Complementary

The opposite hue (180°).

  • #332F52

    #332F52

    oklch(32.7% 0.061 287.8)

  • #38370B

    #38370B

    oklch(32.8% 0.062 108.1)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #332F52

    #332F52

    oklch(32.7% 0.061 287.8)

  • #203554

    #203554

    oklch(32.7% 0.062 258)

  • #412A49

    #412A49

    oklch(32.6% 0.061 317.1)

Open the analogous palette in the generator

Split complementary

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

  • #332F52

    #332F52

    oklch(32.7% 0.061 287.8)

  • #463009

    #463009

    oklch(32.7% 0.061 77.2)

  • #243C1C

    #243C1C

    oklch(32.7% 0.061 138.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #332F52

    #332F52

    oklch(32.7% 0.061 287.8)

  • #4E2A17

    #4E2A17

    oklch(32.7% 0.062 47.5)

  • #093E2E

    #093E2E

    oklch(32.6% 0.061 167.6)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #332F52

    #332F52

    oklch(32.7% 0.061 287.8)

  • #4F2729

    #4F2729

    oklch(32.7% 0.06 17.8)

  • #38370B

    #38370B

    oklch(32.8% 0.062 108.1)

  • #003D3F

    #003D3F

    oklch(32.7% 0.056 198.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #332F52 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.