#0c0821
a deep, vivid blue · warm · closest name: black
RGB
12, 8, 33
HSL
250°, 61%, 8%
CMYK
64, 76, 0, 87
Luminance
0.0036
Every format
| HEX | #0c0821 |
| RGB | rgb(12, 8, 33) |
| HSL | hsl(250, 61%, 8%) |
| CMYK | cmyk(64%, 76%, 0%, 87%) |
| LAB | lab(3.3 6.9 -14.5) |
| LCH | lch(3.3 16.1 295.5) |
| OKLCH | oklch(0.158 0.051 286.6) |
Copy-ready code
/* CSS */
color: #0c0821;
background-color: #0c0821;
/* Tailwind (arbitrary) */
class="text-[#0c0821] bg-[#0c0821]"
/* SCSS */
$brand: #0c0821;
/* SwiftUI */
Color(red: 0.047, green: 0.031, blue: 0.129)
/* Android */
Color.parseColor("#0c0821")Accessibility — WCAG contrast
Aa
#0c0821 on white: 19.58:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0c0821 on black: 1.07:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red4.7%
Green3.1%
Blue12.9%
CMYK percentages
Cyan63.6%
Magenta75.8%
Yellow0.0%
Key (black)87.1%
Color previews
#0c0821 text on a black background
contrast 1.07:1
Card sample
#0c0821 text on a white background
contrast 19.58:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0c0821;
Background color
Panel with #0c0821 background
background-color: #0c0821;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0c0821;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(12, 8, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 8, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c0821; background: linear-gradient(135deg, #0c0821, #1D0821);