Skip to content

#087afd

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

RGB
8, 122, 253
HSL
212°, 98%, 51%
CMYK
97, 52, 0, 1
Luminance
0.2106

Every format

HEX#087afd
RGBrgb(8, 122, 253)
HSLhsl(212, 98%, 51%)
CMYKcmyk(97%, 52%, 0%, 1%)
LABlab(53.0 21.9 -72.6)
LCHlch(53.0 75.8 286.8)
OKLCHoklch(0.602 0.215 257.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#087afd on white: 4.03:1
AA ✗ fail · AA-large · AAA
Aa
#087afd on black: 5.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red3.1%
Green47.8%
Blue99.2%

CMYK percentages

Cyan96.8%
Magenta51.8%
Yellow0.0%
Key (black)0.8%

Color previews

#087afd text on a black background

contrast 5.21:1

Card sample

#087afd text on a white background

contrast 4.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #087afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #087afd in the Color Lab