#40414B color
The hex color #40414B is a dark gray.
In the RGB color model it is made of 25.1% red, 25.5% green and 29.4% blue (64, 65, 75).
Its hue angle is 235°, with 8% saturation and 27% lightness. For print, the CMYK equivalent is 15% cyan, 13% magenta, 0% yellow and 71% black.
The closest named color is Midnight Serenade (#41434E), a difference of 0.9 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.12:1).
#40414B color codes
| HEX | #40414B | |
|---|---|---|
| RGB | rgb(64, 65, 75) | |
| RGB percent | rgb(25.1%, 25.5%, 29.4%) | |
| HSL | hsl(235, 8%, 27%) | |
| HSV / HSB | hsv(235, 15%, 29%) | |
| CMYK | cmyk(15%, 13%, 0%, 71%) | |
| CIE LAB | lab(27.79, 1.98, -6.18) | |
| CIE LCH | lch(27.79, 6.49, 287.73) | |
| CIE XYZ | xyz(5.274, 5.379, 7.416) | |
| Decimal | 4211019 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40414B, 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 #40414B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.08:1 | Fail | Fail | Fail |
| Sample text | 10.12:1 | Pass | Pass | Pass |
| #40414B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.12:1 | Pass | Pass | Pass |
| Sample text | 2.08: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 #40414B looks to people with the most common types of color vision deficiency.
#3f424bProtanopia
no red cones#3e414bDeuteranopia
no green cones#3e4344Tritanopia
no blue cones#424242Achromatopsia
no color vision
CSS examples
.background { background-color: #40414b; }
.text { color: #40414b; }
.border { border: 2px solid #40414b; }
.transparent { background-color: rgb(64 65 75 / 50%); }
.gradient { background: linear-gradient(to right, #40414b, #45404b); }
Similar colors
#41434eMidnight Serenade#3f4250Madonna#484753Gun Powder#424753Midnight Sky#393f4bInkblot#3f4551Dark Crypt#3f3c43Tuxedo#3c4151Lava Stone
Closest common color name: Graphite.
Questions
- What color is #40414B?
- #40414B is a dark gray, closest to the named color Midnight Serenade. It belongs to the gray family of colors.
- What is the RGB value of #40414B?
- The RGB value is 64, 65, 75: 64 red, 65 green and 75 blue on a 0 to 255 scale.
- What is the complementary color of #40414B?
- The complementary color is #4B4A40, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40414B?
- White text. Black text has a contrast ratio of 2.08:1 and white text 10.12:1. WCAG asks for at least 4.5:1 for normal text.