#284c21
a deep, soft green · cool · closest name: darkslategray
RGB
40, 76, 33
HSL
110°, 39%, 21%
CMYK
47, 0, 57, 70
Luminance
0.0573
Every format
| HEX | #284c21 |
| RGB | rgb(40, 76, 33) |
| HSL | hsl(110, 39%, 21%) |
| CMYK | cmyk(47%, 0%, 57%, 70%) |
| LAB | lab(28.7 -22.8 21.4) |
| LCH | lch(28.7 31.3 136.7) |
| OKLCH | oklch(0.378 0.081 140.5) |
Copy-ready code
/* CSS */
color: #284c21;
background-color: #284c21;
/* Tailwind (arbitrary) */
class="text-[#284c21] bg-[#284c21]"
/* SCSS */
$brand: #284c21;
/* SwiftUI */
Color(red: 0.157, green: 0.298, blue: 0.129)
/* Android */
Color.parseColor("#284c21")Accessibility — WCAG contrast
Aa
#284c21 on white: 9.79:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#284c21 on black: 2.15:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green29.8%
Blue12.9%
CMYK percentages
Cyan47.4%
Magenta0.0%
Yellow56.6%
Key (black)70.2%
Color previews
#284c21 text on a black background
contrast 2.15:1
Card sample
#284c21 text on a white background
contrast 9.79:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #284c21;
Background color
Panel with #284c21 background
background-color: #284c21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #284c21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 76, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 76, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #284c21; background: linear-gradient(135deg, #284c21, #214C37);