#404050 color
The hex color #404050 is a dark, grayish blue.
In the RGB color model it is made of 25.1% red, 25.1% green and 31.4% blue (64, 64, 80).
Its hue angle is 240°, with 11% saturation and 28% lightness. For print, the CMYK equivalent is 20% cyan, 20% magenta, 0% yellow and 69% black.
The closest named color is Madonna (#3F4250), a difference of 2.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.16:1).
#404050 color codes
| HEX | #404050 | |
|---|---|---|
| RGB | rgb(64, 64, 80) | |
| RGB percent | rgb(25.1%, 25.1%, 31.4%) | |
| HSL | hsl(240, 11%, 28%) | |
| HSV / HSB | hsv(240, 20%, 31%) | |
| CMYK | cmyk(20%, 20%, 0%, 69%) | |
| CIE LAB | lab(27.67, 3.92, -9.62) | |
| CIE LCH | lch(27.67, 10.39, 292.19) | |
| CIE XYZ | xyz(5.395, 5.336, 8.334) | |
| Decimal | 4210768 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #404050, 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 #404050 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.07:1 | Fail | Fail | Fail |
| Sample text | 10.16:1 | Pass | Pass | Pass |
| #404050 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.16:1 | Pass | Pass | Pass |
| Sample text | 2.07: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 #404050 looks to people with the most common types of color vision deficiency.
#3c4251Protanopia
no red cones#3c4150Deuteranopia
no green cones#3d4345Tritanopia
no blue cones#414141Achromatopsia
no color vision
CSS examples
.background { background-color: #404050; }
.text { color: #404050; }
.border { border: 2px solid #404050; }
.transparent { background-color: rgb(64 64 80 / 50%); }
.gradient { background: linear-gradient(to right, #404050, #484050); }
Similar colors
#3f4250Madonna#413d4bItalian Grape#3c4151Lava Stone#484753Gun Powder#41434eMidnight Serenade#333344Shuriken#424753Midnight Sky#393540Professor Plum
Closest common color name: Graphite.
Questions
- What color is #404050?
- #404050 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 #404050?
- The RGB value is 64, 64, 80: 64 red, 64 green and 80 blue on a 0 to 255 scale.
- What is the complementary color of #404050?
- The complementary color is #505040, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #404050?
- White text. Black text has a contrast ratio of 2.07:1 and white text 10.16:1. WCAG asks for at least 4.5:1 for normal text.