Skip to content

#166afd

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

RGB
22, 106, 253
HSL
218°, 98%, 54%
CMYK
91, 58, 0, 1
Luminance
0.1757

Every format

HEX#166afd
RGBrgb(22, 106, 253)
HSLhsl(218, 98%, 54%)
CMYKcmyk(91%, 58%, 0%, 1%)
LABlab(49.0 32.5 -79.2)
LCHlch(49.0 85.6 292.3)
OKLCHoklch(0.572 0.232 261.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#166afd on white: 4.65:1
AA ✓ pass · AA-large · AAA
Aa
#166afd on black: 4.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red8.6%
Green41.6%
Blue99.2%

CMYK percentages

Cyan91.3%
Magenta58.1%
Yellow0.0%
Key (black)0.8%

Color previews

#166afd text on a black background

contrast 4.51:1

Card sample

#166afd text on a white background

contrast 4.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(22, 106, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 106, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #166afd;
background: linear-gradient(135deg, #166afd, #5C16FD);

Monochromatic scale

Palettes built from #166afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #166afd in the Color Lab