#331C87
Purple
HEX
RGB
HSL
About #331C87 Purple
#331C87 is a purple color. In the RGB color model, it is composed of 51 red, 28 green, and 135 blue. In the HSL color space, it has a hue of 253°, saturation of 66%, and lightness of 32%.
This color has a low lightness value, making it a dark color great for text and bold accents. With moderate saturation, it appears balanced and versatile.
CSS Code
Use #331C87 in your CSS, SCSS, or Tailwind projects.
Color Properties
253°
Hue
66%
Saturation
32%
Lightness
Purple
Color Harmonies
Colors that work well with #331C87 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #331C87 against white and black backgrounds.
Aa#331C87 on White
Contrast Ratio12.68:1
AA ✓AA Large ✓AAA ✓
Aa#331C87 on Black
Contrast Ratio1.66:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #331C87 across different color formats.
| Format | Value |
|---|---|
| HEX | #331C87 |
| RGB | rgb(51, 28, 135) |
| HSL | hsl(253, 66%, 32%) |
| RGB Decimal | 51, 28, 135 |
| RGB Percent | 20.0%, 11.0%, 52.9% |
| CMYK (approx.) | 62%, 79%, 0%, 47% |
Related Palettes
12 palettes using #331C87 or similar colors