Skip to content

#020fd2

a dark, electric blue · warm · closest name: blue

RGB
2, 15, 210
HSL
236°, 98%, 42%
CMYK
99, 93, 0, 18
Luminance
0.0501

Every format

HEX#020fd2
RGBrgb(2, 15, 210)
HSLhsl(236, 98%, 42%)
CMYKcmyk(99%, 93%, 0%, 18%)
LABlab(26.8 65.3 -91.4)
LCHlch(26.8 112.4 305.5)
OKLCHoklch(0.398 0.266 264.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#020fd2 on white: 10.49:1
AA ✓ pass · AA-large · AAA
Aa
#020fd2 on black: 2.00:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red0.8%
Green5.9%
Blue82.4%

CMYK percentages

Cyan99.0%
Magenta92.9%
Yellow0.0%
Key (black)17.6%

Color previews

#020fd2 text on a black background

contrast 2.00:1

Card sample

#020fd2 text on a white background

contrast 10.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(2, 15, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(2, 15, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #020fd2;
background: linear-gradient(135deg, #020fd2, #8002D2);

Monochromatic scale

Palettes built from #020fd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #020fd2 in the Color Lab