#404c21
a deep, soft green · cool · closest name: darkslategray
RGB
64, 76, 33
HSL
77°, 39%, 21%
CMYK
16, 0, 57, 70
Luminance
0.0637
Every format
| HEX | #404c21 |
| RGB | rgb(64, 76, 33) |
| HSL | hsl(77, 39%, 21%) |
| CMYK | cmyk(16%, 0%, 57%, 70%) |
| LAB | lab(30.3 -12.7 23.8) |
| LCH | lch(30.3 26.9 118.1) |
| OKLCH | oklch(0.395 0.067 122.4) |
Copy-ready code
/* CSS */
color: #404c21;
background-color: #404c21;
/* Tailwind (arbitrary) */
class="text-[#404c21] bg-[#404c21]"
/* SCSS */
$brand: #404c21;
/* SwiftUI */
Color(red: 0.251, green: 0.298, blue: 0.129)
/* Android */
Color.parseColor("#404c21")Accessibility — WCAG contrast
Aa
#404c21 on white: 9.24:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#404c21 on black: 2.27:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red25.1%
Green29.8%
Blue12.9%
CMYK percentages
Cyan15.8%
Magenta0.0%
Yellow56.6%
Key (black)70.2%
Color previews
#404c21 text on a black background
contrast 2.27:1
Card sample
#404c21 text on a white background
contrast 9.24:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #404c21;
Background color
Panel with #404c21 background
background-color: #404c21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #404c21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(64, 76, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(64, 76, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #404c21; background: linear-gradient(135deg, #404c21, #234C21);