#332138

Closest named color: Space Cadet (#2B2D42). oklch(28% 0.048 318.8), rgb(51, 33, 56).

Aa

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

About this color

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

Hue familyPurples
Lightnessdark (28%)
Chromamuted (0.048)
Temperaturein between
Nearest nameSpace Cadet (#2B2D42)
Black text1.41:1
White text14.83:1

Values

HEX#332138
RGBrgb(51, 33, 56)
HSLhsl(287, 26%, 17%)
OKLCHoklch(28% 0.048 318.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 #332138 14.83:1 AAA Lc -104.5 Preferred for body text
Black text on #332138 1.41:1 Fails Lc 0.0 Not readable
#332138 text on white 14.83:1 AAA Lc 101.6 Preferred for body text
#332138 text on black 1.41: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

    #F8F4F9

    oklch(97.2% 0.008 319.4)

  2. Step 100

    100

    #EFE7F1

    oklch(93.7% 0.016 319.4)

  3. Step 200

    200

    #E2D3E7

    oklch(88.5% 0.031 317.7)

  4. Step 300

    300

    #D1B6D8

    oklch(81% 0.055 319.3)

  5. Step 400

    400

    #B98FC5

    oklch(70.8% 0.09 318.6)

  6. Step 500

    500

    #A772B6

    oklch(63.1% 0.115 318.6)

  7. Step 600

    600

    #9259A2

    oklch(55.6% 0.126 318.6)

  8. Step 700

    700

    #7C488B

    oklch(49% 0.118 318.4)

  9. Step 800

    800

    #653C71

    oklch(42.7% 0.097 318.3)

  10. Step 900

    900

    #53345B

    oklch(37.8% 0.075 319.2)

  11. Step 950

    950 (this color)

    #332138

    oklch(28% 0.048 318.8)

Export this scale for Tailwind in the Tailwind colors tool

#332138 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)#1E26390.040
Deuteranopia (no green cones)#2228370.037
Tritanopia (no blue cones)#33242A0.031
Achromatopsia (no color)#2828280.048

Harmonies

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

Complementary

The opposite hue (180°).

  • #332138

    #332138

    oklch(28% 0.048 318.8)

  • #1C2F17

    #1C2F17

    oklch(28.1% 0.049 139.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #332138

    #332138

    oklch(28% 0.048 318.8)

  • #28253F

    #28253F

    oklch(28.1% 0.047 288.2)

  • #3A1F2D

    #3A1F2D

    oklch(28.1% 0.047 348.2)

Open the analogous palette in the generator

Split complementary

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

  • #332138

    #332138

    oklch(28% 0.048 318.8)

  • #2B2B0C

    #2B2B0C

    oklch(28.1% 0.048 109.1)

  • #0A3025

    #0A3025

    oklch(27.9% 0.047 170)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #332138

    #332138

    oklch(28% 0.048 318.8)

  • #36260A

    #36260A

    oklch(28.1% 0.048 78.4)

  • #003032

    #003032

    oklch(28.1% 0.048 199.2)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #332138

    #332138

    oklch(28% 0.048 318.8)

  • #3C2113

    #3C2113

    oklch(28% 0.048 47.5)

  • #1C2F17

    #1C2F17

    oklch(28.1% 0.049 139.3)

  • #092D3C

    #092D3C

    oklch(28% 0.048 230.1)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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