#333f21
a deep, soft green · cool · closest name: darkslategray
RGB
51, 63, 33
HSL
84°, 31%, 19%
CMYK
19, 0, 48, 75
Luminance
0.0437
Every format
| HEX | #333f21 |
| RGB | rgb(51, 63, 33) |
| HSL | hsl(84, 31%, 19%) |
| CMYK | cmyk(19%, 0%, 48%, 75%) |
| LAB | lab(24.9 -11.1 16.8) |
| LCH | lch(24.9 20.1 123.4) |
| OKLCH | oklch(0.348 0.051 126.7) |
Copy-ready code
/* CSS */
color: #333f21;
background-color: #333f21;
/* Tailwind (arbitrary) */
class="text-[#333f21] bg-[#333f21]"
/* SCSS */
$brand: #333f21;
/* SwiftUI */
Color(red: 0.200, green: 0.247, blue: 0.129)
/* Android */
Color.parseColor("#333f21")Accessibility — WCAG contrast
Aa
#333f21 on white: 11.21:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#333f21 on black: 1.87:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red20.0%
Green24.7%
Blue12.9%
CMYK percentages
Cyan19.0%
Magenta0.0%
Yellow47.6%
Key (black)75.3%
Color previews
#333f21 text on a black background
contrast 1.87:1
Card sample
#333f21 text on a white background
contrast 11.21:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #333f21;
Background color
Panel with #333f21 background
background-color: #333f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #333f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(51, 63, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(51, 63, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #333f21; background: linear-gradient(135deg, #333f21, #213F23);