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