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