#271D40
Dark Purple
HEX
RGB
HSL
About #271D40 Dark Purple
#271D40 is a dark purple color. In the RGB color model, it is composed of 39 red, 29 green, and 64 blue. In the HSL color space, it has a hue of 257°, saturation of 38%, and lightness of 18%.
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 #271D40 in your CSS, SCSS, or Tailwind projects. Copy ready-to-use gradients.
Beautiful Gradients
Color Properties
257°
Hue
38%
Saturation
18%
Lightness
Dark Purple
Color Harmonies
Colors that work well with #271D40 based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #271D40 against white and black backgrounds.
Aa#271D40 on White
Contrast Ratio15.72:1
AA ✓AA Large ✓AAA ✓
Aa#271D40 on Black
Contrast Ratio1.34:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #271D40 across different color formats.
| Format | Value |
|---|---|
| HEX | #271D40 |
| RGB | rgb(39, 29, 64) |
| HSL | hsl(257, 38%, 18%) |
| RGB Decimal | 39, 29, 64 |
| RGB Percent | 15.3%, 11.4%, 25.1% |
| CMYK (approx.) | 39%, 55%, 0%, 75% |
Related Palettes
12 palettes using #271D40 or similar colors