#40214B color
The hex color #40214B is a dark, desaturated magenta.
In the RGB color model it is made of 25.1% red, 12.9% green and 29.4% blue (64, 33, 75).
Its hue angle is 284°, with 39% saturation and 21% lightness. For print, the CMYK equivalent is 15% cyan, 56% magenta, 0% yellow and 71% black.
The closest named color is Creatures of the Night (#3B193F), a difference of 2.9 ΔE, a small difference.
White text is the more readable choice on this background (contrast 13.66:1).
#40214B color codes
| HEX | #40214B | |
|---|---|---|
| RGB | rgb(64, 33, 75) | |
| RGB percent | rgb(25.1%, 12.9%, 29.4%) | |
| HSL | hsl(284, 39%, 21%) | |
| HSV / HSB | hsv(284, 56%, 29%) | |
| CMYK | cmyk(15%, 56%, 0%, 71%) | |
| CIE LAB | lab(18.74, 23.13, -20.1) | |
| CIE LCH | lch(18.74, 30.64, 319.01) | |
| CIE XYZ | xyz(3.928, 2.686, 6.967) | |
| Decimal | 4202827 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40214B, 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 #40214B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.54:1 | Fail | Fail | Fail |
| Sample text | 13.66:1 | Pass | Pass | Pass |
| #40214B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 13.66:1 | Pass | Pass | Pass |
| Sample text | 1.54: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 #40214B looks to people with the most common types of color vision deficiency.
#182c4cProtanopia
no red cones#222f4aDeuteranopia
no green cones#402732Tritanopia
no blue cones#2e2e2eAchromatopsia
no color vision
CSS examples
.background { background-color: #40214b; }
.text { color: #40214b; }
.border { border: 2px solid #40214b; }
.transparent { background-color: rgb(64 33 75 / 50%); }
.gradient { background: linear-gradient(to right, #40214b, #4b2141); }
Similar colors
#3b193fCreatures of the Night#442244Purple Void#431c53Plunged Into Darkness#4a2559Wonka Purple#48295bAcai#372354Stormy Night#441144Velvet Cosmos#4f284bMurasaki
Closest common color name: Dark Purple.
Questions
- What color is #40214B?
- #40214B is a dark, desaturated magenta, closest to the named color Creatures of the Night. It belongs to the purple family of colors.
- What is the RGB value of #40214B?
- The RGB value is 64, 33, 75: 64 red, 33 green and 75 blue on a 0 to 255 scale.
- What is the complementary color of #40214B?
- The complementary color is #2C4B21, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40214B?
- White text. Black text has a contrast ratio of 1.54:1 and white text 13.66:1. WCAG asks for at least 4.5:1 for normal text.