#0c0313
a deep, vivid violet · warm · closest name: black
RGB
12, 3, 19
HSL
274°, 73%, 4%
CMYK
37, 84, 0, 93
Luminance
0.0019
Every format
| HEX | #0c0313 |
| RGB | rgb(12, 3, 19) |
| HSL | hsl(274, 73%, 4%) |
| CMYK | cmyk(37%, 84%, 0%, 93%) |
| LAB | lab(1.7 5.0 -6.1) |
| LCH | lch(1.7 7.9 308.9) |
| OKLCH | oklch(0.129 0.042 310.5) |
Copy-ready code
/* CSS */
color: #0c0313;
background-color: #0c0313;
/* Tailwind (arbitrary) */
class="text-[#0c0313] bg-[#0c0313]"
/* SCSS */
$brand: #0c0313;
/* SwiftUI */
Color(red: 0.047, green: 0.012, blue: 0.075)
/* Android */
Color.parseColor("#0c0313")Accessibility — WCAG contrast
Aa
#0c0313 on white: 20.23:1
AA ✓ pass · AA-large ✓ · AAA ✓
Aa
#0c0313 on black: 1.04:1
AA ✗ fail · AA-large ✗ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red4.7%
Green1.2%
Blue7.5%
CMYK percentages
Cyan36.8%
Magenta84.2%
Yellow0.0%
Key (black)92.5%
Color previews
#0c0313 text on a black background
contrast 1.04:1
Card sample
#0c0313 text on a white background
contrast 20.23:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #0c0313;
Background color
Panel with #0c0313 background
background-color: #0c0313;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #0c0313;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(12, 3, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 3, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c0313; background: linear-gradient(135deg, #0c0313, #13030F);