#3a4b21
a deep, soft green · cool · closest name: darkslategray
RGB
58, 75, 33
HSL
84°, 39%, 21%
CMYK
23, 0, 56, 71
Luminance
0.0604
Every format
| HEX | #3a4b21 |
| RGB | rgb(58, 75, 33) |
| HSL | hsl(84, 39%, 21%) |
| CMYK | cmyk(23%, 0%, 56%, 71%) |
| LAB | lab(29.5 -14.8 22.7) |
| LCH | lch(29.5 27.1 123.2) |
| OKLCH | oklch(0.387 0.068 127.5) |
Copy-ready code
/* CSS */
color: #3a4b21;
background-color: #3a4b21;
/* Tailwind (arbitrary) */
class="text-[#3a4b21] bg-[#3a4b21]"
/* SCSS */
$brand: #3a4b21;
/* SwiftUI */
Color(red: 0.227, green: 0.294, blue: 0.129)
/* Android */
Color.parseColor("#3a4b21")Accessibility — WCAG contrast
Aa
#3a4b21 on white: 9.51:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#3a4b21 on black: 2.21:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red22.7%
Green29.4%
Blue12.9%
CMYK percentages
Cyan22.7%
Magenta0.0%
Yellow56.0%
Key (black)70.6%
Color previews
#3a4b21 text on a black background
contrast 2.21:1
Card sample
#3a4b21 text on a white background
contrast 9.51:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #3a4b21;
Background color
Panel with #3a4b21 background
background-color: #3a4b21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #3a4b21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(58, 75, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(58, 75, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #3a4b21; background: linear-gradient(135deg, #3a4b21, #214B24);