#140e1b
a deep, soft violet · warm · closest name: black
RGB
20, 14, 27
HSL
268°, 32%, 8%
CMYK
26, 48, 0, 89
Luminance
0.0054
Every format
| HEX | #140e1b |
| RGB | rgb(20, 14, 27) |
| HSL | hsl(268, 32%, 8%) |
| CMYK | cmyk(26%, 48%, 0%, 89%) |
| LAB | lab(4.9 5.3 -7.3) |
| LCH | lch(4.9 9.0 305.7) |
| OKLCH | oklch(0.178 0.028 304.9) |
Copy-ready code
/* CSS */
color: #140e1b;
background-color: #140e1b;
/* Tailwind (arbitrary) */
class="text-[#140e1b] bg-[#140e1b]"
/* SCSS */
$brand: #140e1b;
/* SwiftUI */
Color(red: 0.078, green: 0.055, blue: 0.106)
/* Android */
Color.parseColor("#140e1b")Accessibility — WCAG contrast
Aa
#140e1b on white: 18.95:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#140e1b on black: 1.11:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red7.8%
Green5.5%
Blue10.6%
CMYK percentages
Cyan25.9%
Magenta48.1%
Yellow0.0%
Key (black)89.4%
Color previews
#140e1b text on a black background
contrast 1.11:1
Card sample
#140e1b text on a white background
contrast 18.95:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #140e1b;
Background color
Panel with #140e1b background
background-color: #140e1b;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #140e1b;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(20, 14, 27, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(20, 14, 27, 0.45);
Border & gradient
Gradient panel
border: 3px solid #140e1b; background: linear-gradient(135deg, #140e1b, #1B0E19);