#403440 color
The hex color #403440 is a dark, grayish magenta.
In the RGB color model it is made of 25.1% red, 20.4% green and 25.1% blue (64, 52, 64).
Its hue angle is 300°, with 10% saturation and 23% lightness. For print, the CMYK equivalent is 0% cyan, 19% magenta, 0% yellow and 75% black.
The closest named color is Voodoo (#443240), a difference of 2.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.78:1).
#403440 color codes
| HEX | #403440 | |
|---|---|---|
| RGB | rgb(64, 52, 64) | |
| RGB percent | rgb(25.1%, 20.4%, 25.1%) | |
| HSL | hsl(300, 10%, 23%) | |
| HSV / HSB | hsv(300, 19%, 25%) | |
| CMYK | cmyk(0%, 19%, 0%, 75%) | |
| CIE LAB | lab(23.39, 7.92, -5.47) | |
| CIE LCH | lch(23.39, 9.63, 325.34) | |
| CIE XYZ | xyz(4.268, 3.916, 5.381) | |
| Decimal | 4207680 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #403440, 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 #403440 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.78:1 | Fail | Fail | Fail |
| Sample text | 11.78:1 | Pass | Pass | Pass |
| #403440 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.78:1 | Pass | Pass | Pass |
| Sample text | 1.78: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 #403440 looks to people with the most common types of color vision deficiency.
#333741Protanopia
no red cones#363840Deuteranopia
no green cones#413538Tritanopia
no blue cones#383838Achromatopsia
no color vision
CSS examples
.background { background-color: #403440; }
.text { color: #403440; }
.border { border: 2px solid #403440; }
.transparent { background-color: rgb(64 52 64 / 50%); }
.gradient { background: linear-gradient(to right, #403440, #40343a); }
Similar colors
#443240Voodoo#403547Royal Decree#393540Professor Plum#342931Melanzane#483c41Pitch Black#42364cCall It a Night#413d4bItalian Grape#352b30Mystical Shadow
Closest common color name: Eggplant.
Questions
- What color is #403440?
- #403440 is a dark, grayish magenta, closest to the named color Voodoo. It belongs to the gray family of colors.
- What is the RGB value of #403440?
- The RGB value is 64, 52, 64: 64 red, 52 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #403440?
- The complementary color is #344034, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #403440?
- White text. Black text has a contrast ratio of 1.78:1 and white text 11.78:1. WCAG asks for at least 4.5:1 for normal text.