Skip to content

#0c0213

a deep, electric violet · warm · closest name: black

RGB
12, 2, 19
HSL
275°, 81%, 4%
CMYK
37, 90, 0, 93
Luminance
0.0017

Every format

HEX#0c0213
RGBrgb(12, 2, 19)
HSLhsl(275, 81%, 4%)
CMYKcmyk(37%, 90%, 0%, 93%)
LABlab(1.5 5.3 -6.4)
LCHlch(1.5 8.4 309.8)
OKLCHoklch(0.125 0.046 312.0)

Copy-ready code

/* CSS */
color: #0c0213;
background-color: #0c0213;
/* Tailwind (arbitrary) */
class="text-[#0c0213] bg-[#0c0213]"
/* SCSS */
$brand: #0c0213;
/* SwiftUI */
Color(red: 0.047, green: 0.008, blue: 0.075)
/* Android */
Color.parseColor("#0c0213")

Accessibility — WCAG contrast

Aa
#0c0213 on white: 20.31:1
AA ✓ pass · AA-large · AAA
Aa
#0c0213 on black: 1.03:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red4.7%
Green0.8%
Blue7.5%

CMYK percentages

Cyan36.8%
Magenta89.5%
Yellow0.0%
Key (black)92.5%

Color previews

#0c0213 text on a black background

contrast 1.03:1

Card sample

#0c0213 text on a white background

contrast 20.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #0c0213;
Background color
Panel with #0c0213 background
background-color: #0c0213;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #0c0213;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(12, 2, 19, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(12, 2, 19, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0c0213;
background: linear-gradient(135deg, #0c0213, #13020F);

Monochromatic scale

Palettes built from #0c0213

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0c0213 in the Color Lab