Skip to content

#020721

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

RGB
2, 7, 33
HSL
230°, 89%, 7%
CMYK
94, 79, 0, 87
Luminance
0.0027

Every format

HEX#020721
RGBrgb(2, 7, 33)
HSLhsl(230, 89%, 7%)
CMYKcmyk(94%, 79%, 0%, 87%)
LABlab(2.5 4.7 -15.8)
LCHlch(2.5 16.5 286.6)
OKLCHoklch(0.143 0.057 265.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#020721 on white: 19.91:1
AA ✓ pass · AA-large · AAA
Aa
#020721 on black: 1.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.8%
Green2.7%
Blue12.9%

CMYK percentages

Cyan93.9%
Magenta78.8%
Yellow0.0%
Key (black)87.1%

Color previews

#020721 text on a black background

contrast 1.05:1

Card sample

#020721 text on a white background

contrast 19.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #020721

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #020721 in the Color Lab