#40423B color
The hex color #40423B is a dark gray.
In the RGB color model it is made of 25.1% red, 25.9% green and 23.1% blue (64, 66, 59).
Its hue angle is 77°, with 6% saturation and 25% lightness. For print, the CMYK equivalent is 3% cyan, 0% magenta, 11% yellow and 74% black.
The closest named color is Heavy Metal (#46473E), a difference of 2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.19:1).
#40423B color codes
| HEX | #40423B | |
|---|---|---|
| RGB | rgb(64, 66, 59) | |
| RGB percent | rgb(25.1%, 25.9%, 23.1%) | |
| HSL | hsl(77, 6%, 25%) | |
| HSV / HSB | hsv(77, 11%, 26%) | |
| CMYK | cmyk(3%, 0%, 11%, 74%) | |
| CIE LAB | lab(27.58, -2.36, 3.97) | |
| CIE LCH | lch(27.58, 4.62, 120.72) | |
| CIE XYZ | xyz(4.852, 5.302, 4.905) | |
| Decimal | 4211259 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #40423B, 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 #40423B | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.06:1 | Fail | Fail | Fail |
| Sample text | 10.19:1 | Pass | Pass | Pass |
| #40423B as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.19:1 | Pass | Pass | Pass |
| Sample text | 2.06: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 #40423B looks to people with the most common types of color vision deficiency.
#43413bProtanopia
no red cones#43413bDeuteranopia
no green cones#414140Tritanopia
no blue cones#414141Achromatopsia
no color vision
CSS examples
.background { background-color: #40423b; }
.text { color: #40423b; }
.border { border: 2px solid #40423b; }
.transparent { background-color: rgb(64 66 59 / 50%); }
.gradient { background: linear-gradient(to right, #40423b, #3c423b); }
Similar colors
#46473eHeavy Metal#3b3c36Black Olive#484a46Armadillo#49463fWhiskey and Wine#353935Onyx#44413cDeepest Nightmare#424443Vulcanised#444b43Ancient Pine
Questions
- What color is #40423B?
- #40423B is a dark gray, closest to the named color Heavy Metal. It belongs to the gray family of colors.
- What is the RGB value of #40423B?
- The RGB value is 64, 66, 59: 64 red, 66 green and 59 blue on a 0 to 255 scale.
- What is the complementary color of #40423B?
- The complementary color is #3D3B42, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #40423B?
- White text. Black text has a contrast ratio of 2.06:1 and white text 10.19:1. WCAG asks for at least 4.5:1 for normal text.