#2D1F44 color
The hex color #2D1F44 is a very dark, desaturated violet.
In the RGB color model it is made of 17.6% red, 12.2% green and 26.7% blue (45, 31, 68).
Its hue angle is 263°, with 37% saturation and 19% lightness. For print, the CMYK equivalent is 34% cyan, 54% magenta, 0% yellow and 73% black.
The closest named color is Midnight Velvet (#2A2243), a difference of 2.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 15.1:1).
#2D1F44 color codes
| HEX | #2D1F44 | |
|---|---|---|
| RGB | rgb(45, 31, 68) | |
| RGB percent | rgb(17.6%, 12.2%, 26.7%) | |
| HSL | hsl(263, 37%, 19%) | |
| HSV / HSB | hsv(263, 54%, 27%) | |
| CMYK | cmyk(34%, 54%, 0%, 73%) | |
| CIE LAB | lab(15.25, 16.25, -20.97) | |
| CIE LCH | lch(15.25, 26.53, 307.77) | |
| CIE XYZ | xyz(2.615, 1.955, 5.707) | |
| Decimal | 2957124 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #2D1F44, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #2D1F44 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.39:1 | Fail | Fail | Fail |
| Sample text | 15.1:1 | Pass | Pass | Pass |
| #2D1F44 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 15.1:1 | Pass | Pass | Pass |
| Sample text | 1.39:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #2D1F44 looks to people with the most common types of color vision deficiency.
#132645Protanopia
no red cones#162643Deuteranopia
no green cones#28262eTritanopia
no blue cones#262626Achromatopsia
no color vision
CSS examples
.background { background-color: #2d1f44; }
.text { color: #2d1f44; }
.border { border: 2px solid #2d1f44; }
.transparent { background-color: rgb(45 31 68 / 50%); }
.gradient { background: linear-gradient(to right, #2d1f44, #401f44); }
Similar colors
#2a2243Midnight Velvet#372354Stormy Night#2a2551Pāua#211d49Azulado#372d52Midnight Pie#222244Black Market#231c4dSilent Orbit#322c56Purple Noir
Closest common color name: Dark Purple.
Questions
- What color is #2D1F44?
- #2D1F44 is a very dark, desaturated violet, closest to the named color Midnight Velvet. It belongs to the purple family of colors.
- What is the RGB value of #2D1F44?
- The RGB value is 45, 31, 68: 45 red, 31 green and 68 blue on a 0 to 255 scale.
- What is the complementary color of #2D1F44?
- The complementary color is #36441F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #2D1F44?
- White text. Black text has a contrast ratio of 1.39:1 and white text 15.1:1. WCAG asks for at least 4.5:1 for normal text.