#031b1f
a deep, electric cyan · cool · closest name: black
RGB
3, 27, 31
HSL
189°, 82%, 7%
CMYK
90, 13, 0, 88
Luminance
0.0090
Every format
| HEX | #031b1f |
| RGB | rgb(3, 27, 31) |
| HSL | hsl(189, 82%, 7%) |
| CMYK | cmyk(90%, 13%, 0%, 88%) |
| LAB | lab(8.2 -7.4 -5.6) |
| LCH | lch(8.2 9.3 217.1) |
| OKLCH | oklch(0.205 0.031 209.7) |
Copy-ready code
/* CSS */
color: #031b1f;
background-color: #031b1f;
/* Tailwind (arbitrary) */
class="text-[#031b1f] bg-[#031b1f]"
/* SCSS */
$brand: #031b1f;
/* SwiftUI */
Color(red: 0.012, green: 0.106, blue: 0.122)
/* Android */
Color.parseColor("#031b1f")Accessibility — WCAG contrast
Aa
#031b1f on white: 17.79:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#031b1f on black: 1.18:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red1.2%
Green10.6%
Blue12.2%
CMYK percentages
Cyan90.3%
Magenta12.9%
Yellow0.0%
Key (black)87.8%
Color previews
#031b1f text on a black background
contrast 1.18:1
Card sample
#031b1f text on a white background
contrast 17.79:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #031b1f;
Background color
Panel with #031b1f background
background-color: #031b1f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #031b1f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(3, 27, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(3, 27, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #031b1f; background: linear-gradient(135deg, #031b1f, #03081F);