#284f28
a deep, soft green · cool · closest name: darkslategray
RGB
40, 79, 40
HSL
120°, 33%, 23%
CMYK
49, 0, 49, 69
Luminance
0.0620
Every format
| HEX | #284f28 |
| RGB | rgb(40, 79, 40) |
| HSL | hsl(120, 33%, 23%) |
| CMYK | cmyk(49%, 0%, 49%, 69%) |
| LAB | lab(29.9 -23.2 18.8) |
| LCH | lch(29.9 29.8 140.9) |
| OKLCH | oklch(0.388 0.078 143.9) |
Copy-ready code
/* CSS */
color: #284f28;
background-color: #284f28;
/* Tailwind (arbitrary) */
class="text-[#284f28] bg-[#284f28]"
/* SCSS */
$brand: #284f28;
/* SwiftUI */
Color(red: 0.157, green: 0.310, blue: 0.157)
/* Android */
Color.parseColor("#284f28")Accessibility — WCAG contrast
Aa
#284f28 on white: 9.38:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#284f28 on black: 2.24:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green31.0%
Blue15.7%
CMYK percentages
Cyan49.4%
Magenta0.0%
Yellow49.4%
Key (black)69.0%
Color previews
#284f28 text on a black background
contrast 2.24:1
Card sample
#284f28 text on a white background
contrast 9.38:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #284f28;
Background color
Panel with #284f28 background
background-color: #284f28;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #284f28;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 79, 40, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 79, 40, 0.45);
Border & gradient
Gradient panel
border: 3px solid #284f28; background: linear-gradient(135deg, #284f28, #284F42);