#2E1F5D color
The hex color #2E1F5D is a dark, desaturated violet.
In the RGB color model it is made of 18% red, 12.2% green and 36.5% blue (46, 31, 93).
Its hue angle is 255°, with 50% saturation and 24% lightness. For print, the CMYK equivalent is 51% cyan, 67% magenta, 0% yellow and 64% black.
The closest named color is Indie Go (#2E2364), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 14.28:1).
#2E1F5D color codes
| HEX | #2E1F5D | |
|---|---|---|
| RGB | rgb(46, 31, 93) | |
| RGB percent | rgb(18%, 12.2%, 36.5%) | |
| HSL | hsl(255, 50%, 24%) | |
| HSV / HSB | hsv(255, 67%, 36%) | |
| CMYK | cmyk(51%, 67%, 0%, 64%) | |
| CIE LAB | lab(17.23, 24.55, -34.76) | |
| CIE LCH | lch(17.23, 42.56, 305.23) | |
| CIE XYZ | xyz(3.592, 2.351, 10.618) | |
| Decimal | 3022685 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #2E1F5D, 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 #2E1F5D | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.47:1 | Fail | Fail | Fail |
| Sample text | 14.28:1 | Pass | Pass | Pass |
| #2E1F5D as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 14.28:1 | Pass | Pass | Pass |
| Sample text | 1.47: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 #2E1F5D looks to people with the most common types of color vision deficiency.
#002c5fProtanopia
no red cones#00295cDeuteranopia
no green cones#1f2d3aTritanopia
no blue cones#2a2a2aAchromatopsia
no color vision
CSS examples
.background { background-color: #2e1f5d; }
.text { color: #2e1f5d; }
.border { border: 2px solid #2e1f5d; }
.transparent { background-color: rgb(46 31 93 / 50%); }
.gradient { background: linear-gradient(to right, #2e1f5d, #4d1f5d); }
Similar colors
#2e2364Indie Go#332266Dark Dreams#341758Fabric of Space#222266Intergalactic Cowboy#2d135fVoldemort#231c4dSilent Orbit#222255Spacescape#372354Stormy Night
Closest common color name: Midnight Blue.
Questions
- What color is #2E1F5D?
- #2E1F5D is a dark, desaturated violet, closest to the named color Indie Go. It belongs to the blue family of colors.
- What is the RGB value of #2E1F5D?
- The RGB value is 46, 31, 93: 46 red, 31 green and 93 blue on a 0 to 255 scale.
- What is the complementary color of #2E1F5D?
- The complementary color is #4E5D1F, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #2E1F5D?
- White text. Black text has a contrast ratio of 1.47:1 and white text 14.28:1. WCAG asks for at least 4.5:1 for normal text.