#304C40 color
The hex color #304C40 is a dark, grayish spring green.
In the RGB color model it is made of 18.8% red, 29.8% green and 25.1% blue (48, 76, 64).
Its hue angle is 154°, with 23% saturation and 24% lightness. For print, the CMYK equivalent is 37% cyan, 0% magenta, 16% yellow and 70% black.
The closest named color is Pine Needle (#334D41), a difference of 0.7 ΔE, which is barely visible.
White text is the more readable choice on this background (contrast 9.4:1).
#304C40 color codes
| HEX | #304C40 | |
|---|---|---|
| RGB | rgb(48, 76, 64) | |
| RGB percent | rgb(18.8%, 29.8%, 25.1%) | |
| HSL | hsl(154, 23%, 24%) | |
| HSV / HSB | hsv(154, 37%, 30%) | |
| CMYK | cmyk(37%, 0%, 16%, 70%) | |
| CIE LAB | lab(29.83, -13.65, 3.81) | |
| CIE LCH | lch(29.83, 14.17, 164.42) | |
| CIE XYZ | xyz(4.728, 6.167, 5.791) | |
| Decimal | 3165248 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #304C40, 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 #304C40 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 2.23:1 | Fail | Fail | Fail |
| Sample text | 9.4:1 | Pass | Pass | Pass |
| #304C40 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 9.4:1 | Pass | Pass | Pass |
| Sample text | 2.23: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 #304C40 looks to people with the most common types of color vision deficiency.
#4b483fProtanopia
no red cones#464541Deuteranopia
no green cones#294c48Tritanopia
no blue cones#464646Achromatopsia
no color vision
CSS examples
.background { background-color: #304c40; }
.text { color: #304c40; }
.border { border: 2px solid #304c40; }
.transparent { background-color: rgb(48 76 64 / 50%); }
.gradient { background: linear-gradient(to right, #304c40, #304a4c); }
Similar colors
#334d41Pine Needle#33534bHunter#264334Everglade#394c3bMountain View#3e594cPlantation#3a533dHighlander#3a5b52Iridescent#3e5e4eEthereal Woods
Closest common color name: Dark Slate Gray.
Questions
- What color is #304C40?
- #304C40 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 #304C40?
- The RGB value is 48, 76, 64: 48 red, 76 green and 64 blue on a 0 to 255 scale.
- What is the complementary color of #304C40?
- The complementary color is #4C303C, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #304C40?
- White text. Black text has a contrast ratio of 2.23:1 and white text 9.4:1. WCAG asks for at least 4.5:1 for normal text.