Skip to content

#0a0216

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

RGB
10, 2, 22
HSL
264°, 83%, 5%
CMYK
55, 91, 0, 91
Luminance
0.0017

Every format

HEX#0a0216
RGBrgb(10, 2, 22)
HSLhsl(264, 83%, 5%)
CMYKcmyk(55%, 91%, 0%, 91%)
LABlab(1.5 5.5 -8.5)
LCHlch(1.5 10.1 302.8)
OKLCHoklch(0.124 0.050 302.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red3.9%
Green0.8%
Blue8.6%

CMYK percentages

Cyan54.5%
Magenta90.9%
Yellow0.0%
Key (black)91.4%

Color previews

#0a0216 text on a black background

contrast 1.03:1

Card sample

#0a0216 text on a white background

contrast 20.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0a0216

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0a0216 in the Color Lab