#334308
a deep, electric green · cool · closest name: darkslategray
RGB
51, 67, 8
HSL
76°, 79%, 15%
CMYK
24, 0, 88, 74
Luminance
0.0474
Every format
| HEX | #334308 |
| RGB | rgb(51, 67, 8) |
| HSL | hsl(76, 79%, 15%) |
| CMYK | cmyk(24%, 0%, 88%, 74%) |
| LAB | lab(26.0 -15.9 31.0) |
| LCH | lch(26.0 34.8 117.1) |
| OKLCH | oklch(0.356 0.082 124.3) |
Copy-ready code
/* CSS */
color: #334308;
background-color: #334308;
/* Tailwind (arbitrary) */
class="text-[#334308] bg-[#334308]"
/* SCSS */
$brand: #334308;
/* SwiftUI */
Color(red: 0.200, green: 0.263, blue: 0.031)
/* Android */
Color.parseColor("#334308")Accessibility — WCAG contrast
Aa
#334308 on white: 10.79:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#334308 on black: 1.95:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green26.3%
Blue3.1%
CMYK percentages
Cyan23.9%
Magenta0.0%
Yellow88.1%
Key (black)73.7%
Color previews
#334308 text on a black background
contrast 1.95:1
Card sample
#334308 text on a white background
contrast 10.79:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #334308;
Background color
Panel with #334308 background
background-color: #334308;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #334308;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 67, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 67, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #334308; background: linear-gradient(135deg, #334308, #0C4308);