#312f21
a deep, soft yellow · cool · closest name: darkslategray
RGB
49, 47, 33
HSL
53°, 20%, 16%
CMYK
0, 4, 33, 81
Luminance
0.0280
Every format
| HEX | #312f21 |
| RGB | rgb(49, 47, 33) |
| HSL | hsl(53, 20%, 16%) |
| CMYK | cmyk(0%, 4%, 33%, 81%) |
| LAB | lab(19.2 -1.9 9.3) |
| LCH | lch(19.2 9.6 101.6) |
| OKLCH | oklch(0.303 0.024 100.9) |
Copy-ready code
/* CSS */
color: #312f21;
background-color: #312f21;
/* Tailwind (arbitrary) */
class="text-[#312f21] bg-[#312f21]"
/* SCSS */
$brand: #312f21;
/* SwiftUI */
Color(red: 0.192, green: 0.184, blue: 0.129)
/* Android */
Color.parseColor("#312f21")Accessibility — WCAG contrast
Aa
#312f21 on white: 13.47:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#312f21 on black: 1.56:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red19.2%
Green18.4%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta4.1%
Yellow32.7%
Key (black)80.8%
Color previews
#312f21 text on a black background
contrast 1.56:1
Card sample
#312f21 text on a white background
contrast 13.47:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #312f21;
Background color
Panel with #312f21 background
background-color: #312f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #312f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(49, 47, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(49, 47, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #312f21; background: linear-gradient(135deg, #312f21, #283121);