#397b1f
a dark, vivid green · cool · closest name: forestgreen
RGB
57, 123, 31
HSL
103°, 60%, 30%
CMYK
54, 0, 75, 52
Luminance
0.1513
Every format
| HEX | #397b1f |
| RGB | rgb(57, 123, 31) |
| HSL | hsl(103, 60%, 30%) |
| CMYK | cmyk(54%, 0%, 75%, 52%) |
| LAB | lab(45.8 -38.4 41.6) |
| LCH | lch(45.8 56.6 132.7) |
| OKLCH | oklch(0.520 0.142 138.4) |
Copy-ready code
/* CSS */
color: #397b1f;
background-color: #397b1f;
/* Tailwind (arbitrary) */
class="text-[#397b1f] bg-[#397b1f]"
/* SCSS */
$brand: #397b1f;
/* SwiftUI */
Color(red: 0.224, green: 0.482, blue: 0.122)
/* Android */
Color.parseColor("#397b1f")Accessibility — WCAG contrast
Aa
#397b1f on white: 5.21:1
AA ✓ pass · AA-large ✓ · AAA ✗
Aa
#397b1f on black: 4.03:1
AA ✗ fail · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red22.4%
Green48.2%
Blue12.2%
CMYK percentages
Cyan53.7%
Magenta0.0%
Yellow74.8%
Key (black)51.8%
Color previews
#397b1f text on a black background
contrast 4.03:1
Card sample
#397b1f text on a white background
contrast 5.21:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #397b1f;
Background color
Panel with #397b1f background
background-color: #397b1f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #397b1f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(57, 123, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(57, 123, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #397b1f; background: linear-gradient(135deg, #397b1f, #1F7B42);