#0c161f
a deep, soft blue · cool · closest name: black
RGB
12, 22, 31
HSL
208°, 44%, 8%
CMYK
61, 29, 0, 88
Luminance
0.0075
Every format
| HEX | #0c161f |
| RGB | rgb(12, 22, 31) |
| HSL | hsl(208, 44%, 8%) |
| CMYK | cmyk(61%, 29%, 0%, 88%) |
| LAB | lab(6.8 -1.1 -7.6) |
| LCH | lch(6.8 7.7 261.5) |
| OKLCH | oklch(0.195 0.024 246.5) |
Copy-ready code
/* CSS */
color: #0c161f;
background-color: #0c161f;
/* Tailwind (arbitrary) */
class="text-[#0c161f] bg-[#0c161f]"
/* SCSS */
$brand: #0c161f;
/* SwiftUI */
Color(red: 0.047, green: 0.086, blue: 0.122)
/* Android */
Color.parseColor("#0c161f")Accessibility — WCAG contrast
Aa
#0c161f on white: 18.26:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0c161f on black: 1.15:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red4.7%
Green8.6%
Blue12.2%
CMYK percentages
Cyan61.3%
Magenta29.0%
Yellow0.0%
Key (black)87.8%
Color previews
#0c161f text on a black background
contrast 1.15:1
Card sample
#0c161f text on a white background
contrast 18.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0c161f;
Background color
Panel with #0c161f background
background-color: #0c161f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0c161f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(12, 22, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 22, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c161f; background: linear-gradient(135deg, #0c161f, #0F0C1F);