#331B81
Purple
HEX
RGB
HSL
About #331B81 Purple
#331B81 is a purple color. In the RGB color model, it is composed of 51 red, 27 green, and 129 blue. In the HSL color space, it has a hue of 254°, saturation of 65%, and lightness of 31%.
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 & Gradients
Use #331B81 in your CSS, SCSS, or Tailwind projects. Copy ready-to-use gradients.
Beautiful Gradients
Color Properties
254°
Hue
65%
Saturation
31%
Lightness
Purple
Color Harmonies
Colors that work well with #331B81 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #331B81 against white and black backgrounds.
Aa#331B81 on White
Contrast Ratio13.01:1
AA ✓AA Large ✓AAA ✓
Aa#331B81 on Black
Contrast Ratio1.61:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #331B81 across different color formats.
| Format | Value |
|---|---|
| HEX | #331B81 |
| RGB | rgb(51, 27, 129) |
| HSL | hsl(254, 65%, 31%) |
| RGB Decimal | 51, 27, 129 |
| RGB Percent | 20.0%, 10.6%, 50.6% |
| CMYK (approx.) | 60%, 79%, 0%, 49% |
Related Palettes
12 palettes using #331B81 or similar colors