#304b21
a deep, soft green · cool · closest name: darkslategray
RGB
48, 75, 33
HSL
99°, 39%, 21%
CMYK
36, 0, 56, 71
Luminance
0.0577
Every format
| HEX | #304b21 |
| RGB | rgb(48, 75, 33) |
| HSL | hsl(99, 39%, 21%) |
| CMYK | cmyk(36%, 0%, 56%, 71%) |
| LAB | lab(28.8 -19.2 21.7) |
| LCH | lch(28.8 28.9 131.5) |
| OKLCH | oklch(0.380 0.074 135.5) |
Copy-ready code
/* CSS */
color: #304b21;
background-color: #304b21;
/* Tailwind (arbitrary) */
class="text-[#304b21] bg-[#304b21]"
/* SCSS */
$brand: #304b21;
/* SwiftUI */
Color(red: 0.188, green: 0.294, blue: 0.129)
/* Android */
Color.parseColor("#304b21")Accessibility — WCAG contrast
Aa
#304b21 on white: 9.75:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#304b21 on black: 2.15:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.8%
Green29.4%
Blue12.9%
CMYK percentages
Cyan36.0%
Magenta0.0%
Yellow56.0%
Key (black)70.6%
Color previews
#304b21 text on a black background
contrast 2.15:1
Card sample
#304b21 text on a white background
contrast 9.75:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #304b21;
Background color
Panel with #304b21 background
background-color: #304b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #304b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(48, 75, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 75, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #304b21; background: linear-gradient(135deg, #304b21, #214B2E);