#0f4021
a deep, vivid green · cool · closest name: darkslategray
RGB
15, 64, 33
HSL
142°, 62%, 16%
CMYK
77, 0, 48, 75
Luminance
0.0388
Every format
| HEX | #0f4021 |
| RGB | rgb(15, 64, 33) |
| HSL | hsl(142, 62%, 16%) |
| CMYK | cmyk(77%, 0%, 48%, 75%) |
| LAB | lab(23.3 -24.5 14.4) |
| LCH | lch(23.3 28.4 149.6) |
| OKLCH | oklch(0.330 0.075 151.8) |
Copy-ready code
/* CSS */
color: #0f4021;
background-color: #0f4021;
/* Tailwind (arbitrary) */
class="text-[#0f4021] bg-[#0f4021]"
/* SCSS */
$brand: #0f4021;
/* SwiftUI */
Color(red: 0.059, green: 0.251, blue: 0.129)
/* Android */
Color.parseColor("#0f4021")Accessibility — WCAG contrast
Aa
#0f4021 on white: 11.83:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0f4021 on black: 1.78:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red5.9%
Green25.1%
Blue12.9%
CMYK percentages
Cyan76.6%
Magenta0.0%
Yellow48.4%
Key (black)74.9%
Color previews
#0f4021 text on a black background
contrast 1.78:1
Card sample
#0f4021 text on a white background
contrast 11.83:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0f4021;
Background color
Panel with #0f4021 background
background-color: #0f4021;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0f4021;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(15, 64, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(15, 64, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0f4021; background: linear-gradient(135deg, #0f4021, #0F3E40);