#1D1540 color
The hex color #1D1540 is a very dark, moderate violet.
In the RGB color model it is made of 11.4% red, 8.2% green and 25.1% blue (29, 21, 64).
Its hue angle is 251°, with 51% saturation and 17% lightness. For print, the CMYK equivalent is 55% cyan, 67% magenta, 0% yellow and 75% black.
The closest named color is Azulado (#211D49), a difference of 2.6 ΔE, a small difference.
White text is the more readable choice on this background (contrast 17.02:1).
#1D1540 color codes
| HEX | #1D1540 | |
|---|---|---|
| RGB | rgb(29, 21, 64) | |
| RGB percent | rgb(11.4%, 8.2%, 25.1%) | |
| HSL | hsl(251, 51%, 17%) | |
| HSV / HSB | hsv(251, 67%, 25%) | |
| CMYK | cmyk(55%, 67%, 0%, 75%) | |
| CIE LAB | lab(10.32, 17.33, -26.18) | |
| CIE LCH | lch(10.32, 31.39, 303.5) | |
| CIE XYZ | xyz(1.7, 1.168, 4.985) | |
| Decimal | 1905984 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #1D1540, 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 #1D1540 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.23:1 | Fail | Fail | Fail |
| Sample text | 17.02:1 | Pass | Pass | Pass |
| #1D1540 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 17.02:1 | Pass | Pass | Pass |
| Sample text | 1.23: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 #1D1540 looks to people with the most common types of color vision deficiency.
#001d41Protanopia
no red cones#001b3fDeuteranopia
no green cones#111f28Tritanopia
no blue cones#1c1c1cAchromatopsia
no color vision
CSS examples
.background { background-color: #1d1540; }
.text { color: #1d1540; }
.border { border: 2px solid #1d1540; }
.transparent { background-color: rgb(29 21 64 / 50%); }
.gradient { background: linear-gradient(to right, #1d1540, #321540); }
Similar colors
#211d49Azulado#231c4dSilent Orbit#111144Deadly Depths#1c0f33Midnight Monarch#1c1e4dFly-by-Night#160435Quiet Abyss#071037Infinite Night#2a2551Pāua
Closest common color name: Dark Purple.
Questions
- What color is #1D1540?
- #1D1540 is a very dark, moderate violet, closest to the named color Azulado. It belongs to the black family of colors.
- What is the RGB value of #1D1540?
- The RGB value is 29, 21, 64: 29 red, 21 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #1D1540?
- The complementary color is #384015, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #1D1540?
- White text. Black text has a contrast ratio of 1.23:1 and white text 17.02:1. WCAG asks for at least 4.5:1 for normal text.