#309f21
a dark, vivid green · cool · closest name: forestgreen
RGB
48, 159, 33
HSL
113°, 66%, 38%
CMYK
70, 0, 79, 38
Luminance
0.2553
Every format
| HEX | #309f21 |
| RGB | rgb(48, 159, 33) |
| HSL | hsl(113, 66%, 38%) |
| CMYK | cmyk(70%, 0%, 79%, 38%) |
| LAB | lab(57.6 -53.8 52.4) |
| LCH | lch(57.6 75.1 135.8) |
| OKLCH | oklch(0.617 0.188 141.5) |
Copy-ready code
/* CSS */
color: #309f21;
background-color: #309f21;
/* Tailwind (arbitrary) */
class="text-[#309f21] bg-[#309f21]"
/* SCSS */
$brand: #309f21;
/* SwiftUI */
Color(red: 0.188, green: 0.624, blue: 0.129)
/* Android */
Color.parseColor("#309f21")Accessibility — WCAG contrast
Aa
#309f21 on white: 3.44:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#309f21 on black: 6.11:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.8%
Green62.4%
Blue12.9%
CMYK percentages
Cyan69.8%
Magenta0.0%
Yellow79.2%
Key (black)37.6%
Color previews
#309f21 text on a black background
contrast 6.11:1
Card sample
#309f21 text on a white background
contrast 3.44:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #309f21;
Background color
Panel with #309f21 background
background-color: #309f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #309f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(48, 159, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 159, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #309f21; background: linear-gradient(135deg, #309f21, #219F66);