#304921
a deep, soft green · cool · closest name: darkslategray
RGB
48, 73, 33
HSL
98°, 38%, 21%
CMYK
34, 0, 55, 71
Luminance
0.0550
Every format
| HEX | #304921 |
| RGB | rgb(48, 73, 33) |
| HSL | hsl(98, 38%, 21%) |
| CMYK | cmyk(34%, 0%, 55%, 71%) |
| LAB | lab(28.1 -18.1 20.8) |
| LCH | lch(28.1 27.6 131.0) |
| OKLCH | oklch(0.374 0.071 134.9) |
Copy-ready code
/* CSS */
color: #304921;
background-color: #304921;
/* Tailwind (arbitrary) */
class="text-[#304921] bg-[#304921]"
/* SCSS */
$brand: #304921;
/* SwiftUI */
Color(red: 0.188, green: 0.286, blue: 0.129)
/* Android */
Color.parseColor("#304921")Accessibility — WCAG contrast
Aa
#304921 on white: 10.00:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#304921 on black: 2.10:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.8%
Green28.6%
Blue12.9%
CMYK percentages
Cyan34.2%
Magenta0.0%
Yellow54.8%
Key (black)71.4%
Color previews
#304921 text on a black background
contrast 2.10:1
Card sample
#304921 text on a white background
contrast 10.00:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #304921;
Background color
Panel with #304921 background
background-color: #304921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #304921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(48, 73, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 73, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #304921; background: linear-gradient(135deg, #304921, #21492D);