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