#281f21
a deep, muted red · warm · closest name: black
RGB
40, 31, 33
HSL
347°, 13%, 14%
CMYK
0, 23, 18, 84
Luminance
0.0154
Every format
| HEX | #281f21 |
| RGB | rgb(40, 31, 33) |
| HSL | hsl(347, 13%, 14%) |
| CMYK | cmyk(0%, 23%, 18%, 84%) |
| LAB | lab(12.9 4.8 0.3) |
| LCH | lch(12.9 4.8 3.4) |
| OKLCH | oklch(0.251 0.014 3.2) |
Copy-ready code
/* CSS */
color: #281f21;
background-color: #281f21;
/* Tailwind (arbitrary) */
class="text-[#281f21] bg-[#281f21]"
/* SCSS */
$brand: #281f21;
/* SwiftUI */
Color(red: 0.157, green: 0.122, blue: 0.129)
/* Android */
Color.parseColor("#281f21")Accessibility — WCAG contrast
Aa
#281f21 on white: 16.05:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#281f21 on black: 1.31:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red15.7%
Green12.2%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta22.5%
Yellow17.5%
Key (black)84.3%
Color previews
#281f21 text on a black background
contrast 1.31:1
Card sample
#281f21 text on a white background
contrast 16.05:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #281f21;
Background color
Panel with #281f21 background
background-color: #281f21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #281f21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(40, 31, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(40, 31, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #281f21; background: linear-gradient(135deg, #281f21, #28231F);