#340740
Dark Purple
HEX
RGB
HSL
About #340740 Dark Purple
#340740 is a dark purple color. In the RGB color model, it is composed of 52 red, 7 green, and 64 blue. In the HSL color space, it has a hue of 287°, saturation of 80%, and lightness of 14%.
This color has a low lightness value, making it a dark color great for text and bold accents. With high saturation, it appears vibrant and eye-catching.
CSS Code
Use #340740 in your CSS, SCSS, or Tailwind projects.
Color Properties
287°
Hue
80%
Saturation
14%
Lightness
Dark Purple
Color Harmonies
Colors that work well with #340740 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #340740 against white and black backgrounds.
Aa#340740 on White
Contrast Ratio16.79:1
AA ✓AA Large ✓AAA ✓
Aa#340740 on Black
Contrast Ratio1.25:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #340740 across different color formats.
| Format | Value |
|---|---|
| HEX | #340740 |
| RGB | rgb(52, 7, 64) |
| HSL | hsl(287, 80%, 14%) |
| RGB Decimal | 52, 7, 64 |
| RGB Percent | 20.4%, 2.7%, 25.1% |
| CMYK (approx.) | 19%, 89%, 0%, 75% |
Related Palettes
12 palettes using #340740 or similar colors