#304242 color
The hex color #304242 is a dark, grayish cyan.
In the RGB color model it is made of 18.8% red, 25.9% green and 25.9% blue (48, 66, 66).
Its hue angle is 180°, with 16% saturation and 22% lightness. For print, the CMYK equivalent is 27% cyan, 0% magenta, 0% yellow and 74% black.
The closest named color is Little Mermaid (#2D454A), a difference of 3.1 ΔE, a small difference.
White text is the more readable choice on this background (contrast 10.59:1).
#304242 color codes
| HEX | #304242 | |
|---|---|---|
| RGB | rgb(48, 66, 66) | |
| RGB percent | rgb(18.8%, 25.9%, 25.9%) | |
| HSL | hsl(180, 16%, 22%) | |
| HSV / HSB | hsv(180, 27%, 26%) | |
| CMYK | cmyk(27%, 0%, 0%, 74%) | |
| CIE LAB | lab(26.5, -7.12, -2.34) | |
| CIE LCH | lch(26.5, 7.49, 198.17) | |
| CIE XYZ | xyz(4.15, 4.918, 5.884) | |
| Decimal | 3162690 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #304242, 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 #304242 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.98:1 | Fail | Fail | Fail |
| Sample text | 10.59:1 | Pass | Pass | Pass |
| #304242 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 10.59:1 | Pass | Pass | Pass |
| Sample text | 1.98: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 #304242 looks to people with the most common types of color vision deficiency.
#404042Protanopia
no red cones#3c3e42Deuteranopia
no green cones#2a4342Tritanopia
no blue cones#3f3f3fAchromatopsia
no color vision
CSS examples
.background { background-color: #304242; }
.text { color: #304242; }
.border { border: 2px solid #304242; }
.transparent { background-color: rgb(48 66 66 / 50%); }
.gradient { background: linear-gradient(to right, #304242, #303942); }
Similar colors
#2d454aLittle Mermaid#27454aMysterious Waters#224347Emerald Forest#3c4f4eNight Watch#293432Aztec#424c4aUrban Chic#1c3d44Sunken Harbour#1c3b42Royal Neptune
Closest common color name: Dark Slate Gray.
Questions
- What color is #304242?
- #304242 is a dark, grayish cyan, closest to the named color Little Mermaid. It belongs to the gray family of colors.
- What is the RGB value of #304242?
- The RGB value is 48, 66, 66: 48 red, 66 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #304242?
- The complementary color is #423030, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #304242?
- White text. Black text has a contrast ratio of 1.98:1 and white text 10.59:1. WCAG asks for at least 4.5:1 for normal text.