#336b21
a dark, vivid green · cool · closest name: seagreen
RGB
51, 107, 33
HSL
105°, 53%, 28%
CMYK
52, 0, 69, 58
Luminance
0.1133
Every format
| HEX | #336b21 |
| RGB | rgb(51, 107, 33) |
| HSL | hsl(105, 53%, 28%) |
| CMYK | cmyk(52%, 0%, 69%, 58%) |
| LAB | lab(40.1 -33.4 34.7) |
| LCH | lch(40.1 48.1 133.9) |
| OKLCH | oklch(0.473 0.122 139.0) |
Copy-ready code
/* CSS */
color: #336b21;
background-color: #336b21;
/* Tailwind (arbitrary) */
class="text-[#336b21] bg-[#336b21]"
/* SCSS */
$brand: #336b21;
/* SwiftUI */
Color(red: 0.200, green: 0.420, blue: 0.129)
/* Android */
Color.parseColor("#336b21")Accessibility — WCAG contrast
Aa
#336b21 on white: 6.43:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#336b21 on black: 3.27:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green42.0%
Blue12.9%
CMYK percentages
Cyan52.3%
Magenta0.0%
Yellow69.2%
Key (black)58.0%
Color previews
#336b21 text on a black background
contrast 3.27:1
Card sample
#336b21 text on a white background
contrast 6.43:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #336b21;
Background color
Panel with #336b21 background
background-color: #336b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #336b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 107, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 107, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #336b21; background: linear-gradient(135deg, #336b21, #216B40);