#40414C color
The hex color #40414C is a dark, grayish blue.
In the RGB color model it is made of 25.1% red, 25.5% green and 29.8% blue (64, 65, 76).
Its hue angle is 235°, with 9% saturation and 27% lightness. For print, the CMYK equivalent is 16% cyan, 14% magenta, 0% yellow and 70% black.
The closest named color is Midnight Serenade (#41434E), a difference of 0.8 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.1:1).
#40414C color codes
| HEX | #40414C | |
|---|---|---|
| RGB | rgb(64, 65, 76) | |
| RGB percent | rgb(25.1%, 25.5%, 29.8%) | |
| HSL | hsl(235, 9%, 27%) | |
| HSV / HSB | hsv(235, 16%, 30%) | |
| CMYK | cmyk(16%, 14%, 0%, 70%) | |
| CIE LAB | lab(27.82, 2.23, -6.78) | |
| CIE LCH | lch(27.82, 7.13, 288.21) | |
| CIE XYZ | xyz(5.309, 5.392, 7.597) | |
| Decimal | 4211020 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40414C, 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 #40414C | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.08:1 | Fail | Fail | Fail |
| Sample text | 10.1:1 | Pass | Pass | Pass |
| #40414C as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.1: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 #40414C looks to people with the most common types of color vision deficiency.
#3e424dProtanopia
no red cones#3e414cDeuteranopia
no green cones#3d4345Tritanopia
no blue cones#424242Achromatopsia
no color vision
CSS examples
.background { background-color: #40414c; }
.text { color: #40414c; }
.border { border: 2px solid #40414c; }
.transparent { background-color: rgb(64 65 76 / 50%); }
.gradient { background: linear-gradient(to right, #40414c, #45404c); }
Similar colors
#41434eMidnight Serenade#3f4250Madonna#484753Gun Powder#3c4151Lava Stone#424753Midnight Sky#393f4bInkblot#3f4551Dark Crypt#3f3c43Tuxedo
Closest common color name: Graphite.
Questions
- What color is #40414C?
- #40414C is a dark, grayish blue, closest to the named color Midnight Serenade. It belongs to the gray family of colors.
- What is the RGB value of #40414C?
- The RGB value is 64, 65, 76: 64 red, 65 green and 76 blue on a 0 to 255 scale.
- What is the complementary color of #40414C?
- The complementary color is #4C4B40, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40414C?
- White text. Black text has a contrast ratio of 2.08:1 and white text 10.1:1. WCAG asks for at least 4.5:1 for normal text.