#404242 color
The hex color #404242 is a dark gray.
In the RGB color model it is made of 25.1% red, 25.9% green and 25.9% blue (64, 66, 66).
Its hue angle is 180°, with 2% saturation and 25% lightness. For print, the CMYK equivalent is 3% cyan, 0% magenta, 0% yellow and 74% black.
The closest named color is Vulcanised (#424443), a difference of 0.9 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 10.12:1).
#404242 color codes
| HEX | #404242 | |
|---|---|---|
| RGB | rgb(64, 66, 66) | |
| RGB percent | rgb(25.1%, 25.9%, 25.9%) | |
| HSL | hsl(180, 2%, 25%) | |
| HSV / HSB | hsv(180, 3%, 26%) | |
| CMYK | cmyk(3%, 0%, 0%, 74%) | |
| CIE LAB | lab(27.79, -0.83, -0.29) | |
| CIE LCH | lch(27.79, 0.88, 199.26) | |
| CIE XYZ | xyz(5.046, 5.38, 5.926) | |
| Decimal | 4211266 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #404242, 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 #404242 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.08:1 | Fail | Fail | Fail |
| Sample text | 10.12:1 | Pass | Pass | Pass |
| #404242 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 #404242 looks to people with the most common types of color vision deficiency.
#424242Protanopia
no red cones#414142Deuteranopia
no green cones#3f4242Tritanopia
no blue cones#424242Achromatopsia
no color vision
CSS examples
.background { background-color: #404242; }
.text { color: #404242; }
.border { border: 2px solid #404242; }
.transparent { background-color: rgb(64 66 66 / 50%); }
.gradient { background: linear-gradient(to right, #404242, #404142); }
Similar colors
#424443Vulcanised#424242Black Panther#3e4244Metropolitan Silhouette#3b3f40Tamahagane#414549Stargazing#3b3b3dCoal Hard Truth#383838Graphite#383838Lacquered Liquorice
Questions
- What color is #404242?
- #404242 is a dark gray, closest to the named color Vulcanised. It belongs to the gray family of colors.
- What is the RGB value of #404242?
- The RGB value is 64, 66, 66: 64 red, 66 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #404242?
- The complementary color is #424040, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #404242?
- 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.