#313f21
a deep, soft green · cool · closest name: darkslategray
RGB
49, 63, 33
HSL
88°, 31%, 19%
CMYK
22, 0, 48, 75
Luminance
0.0432
Every format
| HEX | #313f21 |
| RGB | rgb(49, 63, 33) |
| HSL | hsl(88, 31%, 19%) |
| CMYK | cmyk(22%, 0%, 48%, 75%) |
| LAB | lab(24.7 -12.0 16.6) |
| LCH | lch(24.7 20.4 125.9) |
| OKLCH | oklch(0.347 0.052 129.2) |
Copy-ready code
/* CSS */
color: #313f21;
background-color: #313f21;
/* Tailwind (arbitrary) */
class="text-[#313f21] bg-[#313f21]"
/* SCSS */
$brand: #313f21;
/* SwiftUI */
Color(red: 0.192, green: 0.247, blue: 0.129)
/* Android */
Color.parseColor("#313f21")Accessibility — WCAG contrast
Aa
#313f21 on white: 11.27:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#313f21 on black: 1.86:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red19.2%
Green24.7%
Blue12.9%
CMYK percentages
Cyan22.2%
Magenta0.0%
Yellow47.6%
Key (black)75.3%
Color previews
#313f21 text on a black background
contrast 1.86:1
Card sample
#313f21 text on a white background
contrast 11.27:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #313f21;
Background color
Panel with #313f21 background
background-color: #313f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #313f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(49, 63, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(49, 63, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #313f21; background: linear-gradient(135deg, #313f21, #213F25);