Skip to content

#0a0021

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

RGB
10, 0, 33
HSL
258°, 100%, 7%
CMYK
70, 100, 0, 87
Luminance
0.0017

Every format

HEX#0a0021
RGBrgb(10, 0, 33)
HSLhsl(258, 100%, 7%)
CMYKcmyk(70%, 100%, 0%, 87%)
LABlab(1.6 9.6 -17.1)
LCHlch(1.6 19.6 299.2)
OKLCHoklch(0.130 0.073 292.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red3.9%
Green0.0%
Blue12.9%

CMYK percentages

Cyan69.7%
Magenta100.0%
Yellow0.0%
Key (black)87.1%

Color previews

#0a0021 text on a black background

contrast 1.03:1

Card sample

#0a0021 text on a white background

contrast 20.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #0a0021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0a0021 in the Color Lab