#173f21
a deep, vivid green · cool · closest name: darkslategray
RGB
23, 63, 33
HSL
135°, 47%, 17%
CMYK
64, 0, 48, 75
Luminance
0.0385
Every format
| HEX | #173f21 |
| RGB | rgb(23, 63, 33) |
| HSL | hsl(135, 47%, 17%) |
| CMYK | cmyk(64%, 0%, 48%, 75%) |
| LAB | lab(23.2 -22.0 14.3) |
| LCH | lch(23.2 26.2 147.0) |
| OKLCH | oklch(0.330 0.069 149.4) |
Copy-ready code
/* CSS */
color: #173f21;
background-color: #173f21;
/* Tailwind (arbitrary) */
class="text-[#173f21] bg-[#173f21]"
/* SCSS */
$brand: #173f21;
/* SwiftUI */
Color(red: 0.090, green: 0.247, blue: 0.129)
/* Android */
Color.parseColor("#173f21")Accessibility — WCAG contrast
Aa
#173f21 on white: 11.87:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#173f21 on black: 1.77:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red9.0%
Green24.7%
Blue12.9%
CMYK percentages
Cyan63.5%
Magenta0.0%
Yellow47.6%
Key (black)75.3%
Color previews
#173f21 text on a black background
contrast 1.77:1
Card sample
#173f21 text on a white background
contrast 11.87:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #173f21;
Background color
Panel with #173f21 background
background-color: #173f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #173f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(23, 63, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(23, 63, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #173f21; background: linear-gradient(135deg, #173f21, #173F3C);