#284042 color
The hex color #284042 is a dark, grayish cyan.
In the RGB color model it is made of 15.7% red, 25.1% green and 25.9% blue (40, 64, 66).
Its hue angle is 185°, with 25% saturation and 21% lightness. For print, the CMYK equivalent is 39% cyan, 3% magenta, 0% yellow and 74% black.
The closest named color is Emerald Forest (#224347), a difference of 2.3 ΔE, a small difference.
White text is the more readable choice on this background (contrast 11.04:1).
#284042 color codes
| HEX | #284042 | |
|---|---|---|
| RGB | rgb(40, 64, 66) | |
| RGB percent | rgb(15.7%, 25.1%, 25.9%) | |
| HSL | hsl(185, 25%, 21%) | |
| HSV / HSB | hsv(185, 39%, 26%) | |
| CMYK | cmyk(39%, 3%, 0%, 74%) | |
| CIE LAB | lab(25.29, -8.66, -4.18) | |
| CIE LCH | lch(25.29, 9.62, 205.77) | |
| CIE XYZ | xyz(3.691, 4.511, 5.829) | |
| Decimal | 2637890 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #284042, 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 #284042 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.9:1 | Fail | Fail | Fail |
| Sample text | 11.04:1 | Pass | Pass | Pass |
| #284042 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 11.04:1 | Pass | Pass | Pass |
| Sample text | 1.9: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 #284042 looks to people with the most common types of color vision deficiency.
#3d3e42Protanopia
no red cones#383a42Deuteranopia
no green cones#1e4241Tritanopia
no blue cones#3c3c3cAchromatopsia
no color vision
CSS examples
.background { background-color: #284042; }
.text { color: #284042; }
.border { border: 2px solid #284042; }
.transparent { background-color: rgb(40 64 66 / 50%); }
.gradient { background: linear-gradient(to right, #284042, #283342); }
Similar colors
#224347Emerald Forest#27454aMysterious Waters#2d454aLittle Mermaid#1c3d44Sunken Harbour#1c3b42Royal Neptune#133337Elite Teal#203943Astral Nomad#2f4f4fDark Slate Gray
Questions
- What color is #284042?
- #284042 is a dark, grayish cyan, closest to the named color Emerald Forest. It belongs to the gray family of colors.
- What is the RGB value of #284042?
- The RGB value is 40, 64, 66: 40 red, 64 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #284042?
- The complementary color is #422A28, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #284042?
- White text. Black text has a contrast ratio of 1.9:1 and white text 11.04:1. WCAG asks for at least 4.5:1 for normal text.