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