#140f2f
a deep, vivid blue · warm · closest name: black
RGB
20, 15, 47
HSL
249°, 52%, 12%
CMYK
57, 68, 0, 82
Luminance
0.0070
Every format
| HEX | #140f2f |
| RGB | rgb(20, 15, 47) |
| HSL | hsl(249, 52%, 12%) |
| CMYK | cmyk(57%, 68%, 0%, 82%) |
| LAB | lab(6.3 12.5 -20.4) |
| LCH | lch(6.3 23.9 301.5) |
| OKLCH | oklch(0.196 0.061 286.4) |
Copy-ready code
/* CSS */
color: #140f2f;
background-color: #140f2f;
/* Tailwind (arbitrary) */
class="text-[#140f2f] bg-[#140f2f]"
/* SCSS */
$brand: #140f2f;
/* SwiftUI */
Color(red: 0.078, green: 0.059, blue: 0.184)
/* Android */
Color.parseColor("#140f2f")Accessibility — WCAG contrast
Aa
#140f2f on white: 18.44:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#140f2f on black: 1.14:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red7.8%
Green5.9%
Blue18.4%
CMYK percentages
Cyan57.4%
Magenta68.1%
Yellow0.0%
Key (black)81.6%
Color previews
#140f2f text on a black background
contrast 1.14:1
Card sample
#140f2f text on a white background
contrast 18.44:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #140f2f;
Background color
Panel with #140f2f background
background-color: #140f2f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #140f2f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(20, 15, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(20, 15, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #140f2f; background: linear-gradient(135deg, #140f2f, #290F2F);