#394142 color
The hex color #394142 is a dark gray.
In the RGB color model it is made of 22.4% red, 25.5% green and 25.9% blue (57, 65, 66).
Its hue angle is 187°, with 7% saturation and 24% lightness. For print, the CMYK equivalent is 14% cyan, 2% magenta, 0% yellow and 74% black.
The closest named color is Tamahagane (#3B3F40), a difference of 2.2 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.45:1).
#394142 color codes
| HEX | #394142 | |
|---|---|---|
| RGB | rgb(57, 65, 66) | |
| RGB percent | rgb(22.4%, 25.5%, 25.9%) | |
| HSL | hsl(187, 7%, 24%) | |
| HSV / HSB | hsv(187, 14%, 26%) | |
| CMYK | cmyk(14%, 2%, 0%, 74%) | |
| CIE LAB | lab(26.86, -3.04, -1.73) | |
| CIE LCH | lch(26.86, 3.5, 209.6) | |
| CIE XYZ | xyz(4.561, 5.044, 5.886) | |
| Decimal | 3752258 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #394142, 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 #394142 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.01:1 | Fail | Fail | Fail |
| Sample text | 10.45:1 | Pass | Pass | Pass |
| #394142 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.45:1 | Pass | Pass | Pass |
| Sample text | 2.01: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 #394142 looks to people with the most common types of color vision deficiency.
#404042Protanopia
no red cones#3e3f42Deuteranopia
no green cones#374241Tritanopia
no blue cones#3f3f3fAchromatopsia
no color vision
CSS examples
.background { background-color: #394142; }
.text { color: #394142; }
.border { border: 2px solid #394142; }
.transparent { background-color: rgb(57 65 66 / 50%); }
.gradient { background: linear-gradient(to right, #394142, #393d42); }
Similar colors
#3b3f40Tamahagane#3e4244Metropolitan Silhouette#3d474bLights Out#414a4cDark Space#424443Vulcanised#444b4aMoonless Sky#353838Wet Concrete#414549Stargazing
Closest common color name: Onyx.
Questions
- What color is #394142?
- #394142 is a dark gray, closest to the named color Tamahagane. It belongs to the gray family of colors.
- What is the RGB value of #394142?
- The RGB value is 57, 65, 66: 57 red, 65 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #394142?
- The complementary color is #423A39, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #394142?
- White text. Black text has a contrast ratio of 2.01:1 and white text 10.45:1. WCAG asks for at least 4.5:1 for normal text.