#403950 color
The hex color #403950 is a dark, grayish violet.
In the RGB color model it is made of 25.1% red, 22.4% green and 31.4% blue (64, 57, 80).
Its hue angle is 258°, with 17% saturation and 27% lightness. For print, the CMYK equivalent is 20% cyan, 29% magenta, 0% yellow and 69% black.
The closest named color is Maharaja (#3F354F), a difference of 2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.94:1).
#403950 color codes
| HEX | #403950 | |
|---|---|---|
| RGB | rgb(64, 57, 80) | |
| RGB percent | rgb(25.1%, 22.4%, 31.4%) | |
| HSL | hsl(258, 17%, 27%) | |
| HSV / HSB | hsv(258, 29%, 31%) | |
| CMYK | cmyk(20%, 29%, 0%, 69%) | |
| CIE LAB | lab(25.55, 8.57, -12.86) | |
| CIE LCH | lch(25.55, 15.45, 303.68) | |
| CIE XYZ | xyz(5.025, 4.595, 8.21) | |
| Decimal | 4208976 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #403950, 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 #403950 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.92:1 | Fail | Fail | Fail |
| Sample text | 10.94:1 | Pass | Pass | Pass |
| #403950 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.94:1 | Pass | Pass | Pass |
| Sample text | 1.92: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 #403950 looks to people with the most common types of color vision deficiency.
#343d51Protanopia
no red cones#353c4fDeuteranopia
no green cones#3d3c41Tritanopia
no blue cones#3d3d3dAchromatopsia
no color vision
CSS examples
.background { background-color: #403950; }
.text { color: #403950; }
.border { border: 2px solid #403950; }
.transparent { background-color: rgb(64 57 80 / 50%); }
.gradient { background: linear-gradient(to right, #403950, #4b3950); }
Similar colors
#3f354fMaharaja#42364cCall It a Night#403547Royal Decree#413d4bItalian Grape#3c2f4eSanctum of Shadows#333344Shuriken#4f4554Black Magic#2c2e47Midnight Masquerade
Closest common color name: Eggplant.
Questions
- What color is #403950?
- #403950 is a dark, grayish violet, closest to the named color Maharaja. It belongs to the purple family of colors.
- What is the RGB value of #403950?
- The RGB value is 64, 57, 80: 64 red, 57 green and 80 blue on a 0 to 255 scale.
- What is the complementary color of #403950?
- The complementary color is #495039, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #403950?
- White text. Black text has a contrast ratio of 1.92:1 and white text 10.94:1. WCAG asks for at least 4.5:1 for normal text.