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