#304D42 color
The hex color #304D42 is a dark, grayish spring green.
In the RGB color model it is made of 18.8% red, 30.2% green and 25.9% blue (48, 77, 66).
Its hue angle is 157°, with 23% saturation and 25% lightness. For print, the CMYK equivalent is 38% cyan, 0% magenta, 14% yellow and 70% black.
The closest named color is Pine Needle (#334D41), a difference of 1 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 9.27:1).
#304D42 color codes
| HEX | #304D42 | |
|---|---|---|
| RGB | rgb(48, 77, 66) | |
| RGB percent | rgb(18.8%, 30.2%, 25.9%) | |
| HSL | hsl(157, 23%, 25%) | |
| HSV / HSB | hsv(157, 38%, 30%) | |
| CMYK | cmyk(38%, 0%, 14%, 70%) | |
| CIE LAB | lab(30.23, -13.73, 3.1) | |
| CIE LCH | lch(30.23, 14.08, 167.29) | |
| CIE XYZ | xyz(4.856, 6.329, 6.119) | |
| Decimal | 3165506 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #304D42, 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 #304D42 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.27:1 | Fail | Fail | Fail |
| Sample text | 9.27:1 | Pass | Pass | Pass |
| #304D42 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.27:1 | Pass | Pass | Pass |
| Sample text | 2.27: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 #304D42 looks to people with the most common types of color vision deficiency.
#4c4941Protanopia
no red cones#474643Deuteranopia
no green cones#284d4aTritanopia
no blue cones#474747Achromatopsia
no color vision
CSS examples
.background { background-color: #304d42; }
.text { color: #304d42; }
.border { border: 2px solid #304d42; }
.transparent { background-color: rgb(48 77 66 / 50%); }
.gradient { background: linear-gradient(to right, #304d42, #30494d); }
Similar colors
#334d41Pine Needle#33534bHunter#264334Everglade#394c3bMountain View#3e594cPlantation#3a5b52Iridescent#3a533dHighlander#315955Enchanting Ivy
Closest common color name: Dark Slate Gray.
Questions
- What color is #304D42?
- #304D42 is a dark, grayish spring green, closest to the named color Pine Needle. It belongs to the green family of colors.
- What is the RGB value of #304D42?
- The RGB value is 48, 77, 66: 48 red, 77 green and 66 blue on a 0 to 255 scale.
- What is the complementary color of #304D42?
- The complementary color is #4D303B, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #304D42?
- White text. Black text has a contrast ratio of 2.27:1 and white text 9.27:1. WCAG asks for at least 4.5:1 for normal text.