#1F173F
Dark Purple
HEX
RGB
HSL
About #1F173F Dark Purple
#1F173F is a dark purple color. In the RGB color model, it is composed of 31 red, 23 green, and 63 blue. In the HSL color space, it has a hue of 252°, saturation of 47%, and lightness of 17%.
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 #1F173F in your CSS, SCSS, or Tailwind projects. Copy ready-to-use gradients.
Beautiful Gradients
Color Properties
252°
Hue
47%
Saturation
17%
Lightness
Dark Purple
Color Harmonies
Colors that work well with #1F173F based on color theory.
Accessibility
WCAG 2.1 contrast ratio of #1F173F against white and black backgrounds.
Aa#1F173F on White
Contrast Ratio16.77:1
AA ✓AA Large ✓AAA ✓
Aa#1F173F on Black
Contrast Ratio1.25:1
AA ✗AA Large ✗AAA ✗
Color Conversion Table
Complete conversion of #1F173F across different color formats.
| Format | Value |
|---|---|
| HEX | #1F173F |
| RGB | rgb(31, 23, 63) |
| HSL | hsl(252, 47%, 17%) |
| RGB Decimal | 31, 23, 63 |
| RGB Percent | 12.2%, 9.0%, 24.7% |
| CMYK (approx.) | 51%, 63%, 0%, 75% |
Related Palettes
12 palettes using #1F173F or similar colors