#306f21
a dark, vivid green · cool · closest name: forestgreen
RGB
48, 111, 33
HSL
109°, 54%, 28%
CMYK
57, 0, 70, 57
Luminance
0.1211
Every format
| HEX | #306f21 |
| RGB | rgb(48, 111, 33) |
| HSL | hsl(109, 54%, 28%) |
| CMYK | cmyk(57%, 0%, 70%, 57%) |
| LAB | lab(41.4 -36.0 36.0) |
| LCH | lch(41.4 50.9 135.0) |
| OKLCH | oklch(0.483 0.129 140.1) |
Copy-ready code
/* CSS */
color: #306f21;
background-color: #306f21;
/* Tailwind (arbitrary) */
class="text-[#306f21] bg-[#306f21]"
/* SCSS */
$brand: #306f21;
/* SwiftUI */
Color(red: 0.188, green: 0.435, blue: 0.129)
/* Android */
Color.parseColor("#306f21")Accessibility — WCAG contrast
Aa
#306f21 on white: 6.14:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#306f21 on black: 3.42:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.8%
Green43.5%
Blue12.9%
CMYK percentages
Cyan56.8%
Magenta0.0%
Yellow70.3%
Key (black)56.5%
Color previews
#306f21 text on a black background
contrast 3.42:1
Card sample
#306f21 text on a white background
contrast 6.14:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #306f21;
Background color
Panel with #306f21 background
background-color: #306f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #306f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(48, 111, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 111, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #306f21; background: linear-gradient(135deg, #306f21, #216F46);