#284a21
a deep, soft green · cool · closest name: darkslategray
RGB
40, 74, 33
HSL
110°, 38%, 21%
CMYK
46, 0, 55, 71
Luminance
0.0546
Every format
| HEX | #284a21 |
| RGB | rgb(40, 74, 33) |
| HSL | hsl(110, 38%, 21%) |
| CMYK | cmyk(46%, 0%, 55%, 71%) |
| LAB | lab(28.0 -21.8 20.6) |
| LCH | lch(28.0 29.9 136.7) |
| OKLCH | oklch(0.372 0.077 140.3) |
Copy-ready code
/* CSS */
color: #284a21;
background-color: #284a21;
/* Tailwind (arbitrary) */
class="text-[#284a21] bg-[#284a21]"
/* SCSS */
$brand: #284a21;
/* SwiftUI */
Color(red: 0.157, green: 0.290, blue: 0.129)
/* Android */
Color.parseColor("#284a21")Accessibility — WCAG contrast
Aa
#284a21 on white: 10.04:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#284a21 on black: 2.09:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green29.0%
Blue12.9%
CMYK percentages
Cyan45.9%
Magenta0.0%
Yellow55.4%
Key (black)71.0%
Color previews
#284a21 text on a black background
contrast 2.09:1
Card sample
#284a21 text on a white background
contrast 10.04:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #284a21;
Background color
Panel with #284a21 background
background-color: #284a21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #284a21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 74, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 74, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #284a21; background: linear-gradient(135deg, #284a21, #214A35);