#404151 color
The hex color #404151 is a dark, grayish blue.
In the RGB color model it is made of 25.1% red, 25.5% green and 31.8% blue (64, 65, 81).
Its hue angle is 236°, with 12% saturation and 28% lightness. For print, the CMYK equivalent is 21% cyan, 20% magenta, 0% yellow and 68% black.
The closest named color is Madonna (#3F4250), a difference of 1.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.03:1).
#404151 color codes
| HEX | #404151 | |
|---|---|---|
| RGB | rgb(64, 65, 81) | |
| RGB percent | rgb(25.1%, 25.5%, 31.8%) | |
| HSL | hsl(236, 12%, 28%) | |
| HSV / HSB | hsv(236, 21%, 32%) | |
| CMYK | cmyk(21%, 20%, 0%, 68%) | |
| CIE LAB | lab(28.02, 3.53, -9.74) | |
| CIE LCH | lch(28.02, 10.36, 289.93) | |
| CIE XYZ | xyz(5.49, 5.465, 8.549) | |
| Decimal | 4211025 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #404151, 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 #404151 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.09:1 | Fail | Fail | Fail |
| Sample text | 10.03:1 | Pass | Pass | Pass |
| #404151 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.03:1 | Pass | Pass | Pass |
| Sample text | 2.09: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 #404151 looks to people with the most common types of color vision deficiency.
#3d4352Protanopia
no red cones#3c4251Deuteranopia
no green cones#3c4446Tritanopia
no blue cones#424242Achromatopsia
no color vision
CSS examples
.background { background-color: #404151; }
.text { color: #404151; }
.border { border: 2px solid #404151; }
.transparent { background-color: rgb(64 65 81 / 50%); }
.gradient { background: linear-gradient(to right, #404151, #484051); }
Similar colors
#3f4250Madonna#3c4151Lava Stone#413d4bItalian Grape#41434eMidnight Serenade#484753Gun Powder#424753Midnight Sky#393f4bInkblot#3f4551Dark Crypt
Closest common color name: Charcoal.
Questions
- What color is #404151?
- #404151 is a dark, grayish blue, closest to the named color Madonna. It belongs to the gray family of colors.
- What is the RGB value of #404151?
- The RGB value is 64, 65, 81: 64 red, 65 green and 81 blue on a 0 to 255 scale.
- What is the complementary color of #404151?
- The complementary color is #515040, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #404151?
- White text. Black text has a contrast ratio of 2.09:1 and white text 10.03:1. WCAG asks for at least 4.5:1 for normal text.