Skip to content

#0872fd

a balanced, electric blue · cool · closest name: royalblue

RGB
8, 114, 253
HSL
214°, 98%, 51%
CMYK
97, 55, 0, 1
Luminance
0.1918

Every format

HEX#0872fd
RGBrgb(8, 114, 253)
HSLhsl(214, 98%, 51%)
CMYKcmyk(97%, 55%, 0%, 1%)
LABlab(50.9 27.0 -76.0)
LCHlch(50.9 80.7 289.6)
OKLCHoklch(0.586 0.224 259.1)

Copy-ready code

/* CSS */
color: #0872fd;
background-color: #0872fd;
/* Tailwind (arbitrary) */
class="text-[#0872fd] bg-[#0872fd]"
/* SCSS */
$brand: #0872fd;
/* SwiftUI */
Color(red: 0.031, green: 0.447, blue: 0.992)
/* Android */
Color.parseColor("#0872fd")

Accessibility — WCAG contrast

Aa
#0872fd on white: 4.34:1
AA ✗ fail · AA-large · AAA
Aa
#0872fd on black: 4.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red3.1%
Green44.7%
Blue99.2%

CMYK percentages

Cyan96.8%
Magenta54.9%
Yellow0.0%
Key (black)0.8%

Color previews

#0872fd text on a black background

contrast 4.84:1

Card sample

#0872fd text on a white background

contrast 4.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(8, 114, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(8, 114, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #0872fd;
background: linear-gradient(135deg, #0872fd, #4108FD);

Monochromatic scale

Palettes built from #0872fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #0872fd in the Color Lab