#334021
a deep, soft green · cool · closest name: darkslategray
RGB
51, 64, 33
HSL
85°, 32%, 19%
CMYK
20, 0, 48, 75
Luminance
0.0448
Every format
| HEX | #334021 |
| RGB | rgb(51, 64, 33) |
| HSL | hsl(85, 32%, 19%) |
| CMYK | cmyk(20%, 0%, 48%, 75%) |
| LAB | lab(25.2 -11.7 17.2) |
| LCH | lch(25.2 20.8 124.1) |
| OKLCH | oklch(0.351 0.053 127.5) |
Copy-ready code
/* CSS */
color: #334021;
background-color: #334021;
/* Tailwind (arbitrary) */
class="text-[#334021] bg-[#334021]"
/* SCSS */
$brand: #334021;
/* SwiftUI */
Color(red: 0.200, green: 0.251, blue: 0.129)
/* Android */
Color.parseColor("#334021")Accessibility — WCAG contrast
Aa
#334021 on white: 11.08:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#334021 on black: 1.90:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green25.1%
Blue12.9%
CMYK percentages
Cyan20.3%
Magenta0.0%
Yellow48.4%
Key (black)74.9%
Color previews
#334021 text on a black background
contrast 1.90:1
Card sample
#334021 text on a white background
contrast 11.08:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #334021;
Background color
Panel with #334021 background
background-color: #334021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #334021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 64, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 64, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #334021; background: linear-gradient(135deg, #334021, #214024);