#402F8E
Purple
HEX
RGB
HSL
About #402F8E Purple
#402F8E is a purple color. In the RGB color model, it is composed of 64 red, 47 green, and 142 blue. In the HSL color space, it has a hue of 251°, saturation of 50%, and lightness of 37%.
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 #402F8E in your CSS, SCSS, or Tailwind projects.
Color Properties
251°
Hue
50%
Saturation
37%
Lightness
Purple
Color Harmonies
Colors that work well with #402F8E based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #402F8E against white and black backgrounds.
Aa#402F8E on White
Contrast Ratio10.42:1
AA ✓AA Large ✓AAA ✓
Aa#402F8E on Black
Contrast Ratio2.02:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #402F8E across different color formats.
| Format | Value |
|---|---|
| HEX | #402F8E |
| RGB | rgb(64, 47, 142) |
| HSL | hsl(251, 50%, 37%) |
| RGB Decimal | 64, 47, 142 |
| RGB Percent | 25.1%, 18.4%, 55.7% |
| CMYK (approx.) | 55%, 67%, 0%, 44% |
Related Palettes
12 palettes using #402F8E or similar colors