#304021
a deep, soft green · cool · closest name: darkslategray
RGB
48, 64, 33
HSL
91°, 32%, 19%
CMYK
25, 0, 48, 75
Luminance
0.0440
Every format
| HEX | #304021 |
| RGB | rgb(48, 64, 33) |
| HSL | hsl(91, 32%, 19%) |
| CMYK | cmyk(25%, 0%, 48%, 75%) |
| LAB | lab(25.0 -13.0 16.9) |
| LCH | lch(25.0 21.3 127.7) |
| OKLCH | oklch(0.349 0.055 131.0) |
Copy-ready code
/* CSS */
color: #304021;
background-color: #304021;
/* Tailwind (arbitrary) */
class="text-[#304021] bg-[#304021]"
/* SCSS */
$brand: #304021;
/* SwiftUI */
Color(red: 0.188, green: 0.251, blue: 0.129)
/* Android */
Color.parseColor("#304021")Accessibility — WCAG contrast
Aa
#304021 on white: 11.16:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#304021 on black: 1.88:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red18.8%
Green25.1%
Blue12.9%
CMYK percentages
Cyan25.0%
Magenta0.0%
Yellow48.4%
Key (black)74.9%
Color previews
#304021 text on a black background
contrast 1.88:1
Card sample
#304021 text on a white background
contrast 11.16:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #304021;
Background color
Panel with #304021 background
background-color: #304021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #304021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(48, 64, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(48, 64, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #304021; background: linear-gradient(135deg, #304021, #214027);