Skip to content

#166dfd

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

RGB
22, 109, 253
HSL
217°, 98%, 54%
CMYK
91, 57, 0, 1
Luminance
0.1820

Every format

HEX#166dfd
RGBrgb(22, 109, 253)
HSLhsl(217, 98%, 54%)
CMYKcmyk(91%, 57%, 0%, 1%)
LABlab(49.7 30.6 -77.9)
LCHlch(49.7 83.7 291.4)
OKLCHoklch(0.577 0.228 260.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#166dfd on white: 4.53:1
AA ✓ pass · AA-large · AAA
Aa
#166dfd on black: 4.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red8.6%
Green42.7%
Blue99.2%

CMYK percentages

Cyan91.3%
Magenta56.9%
Yellow0.0%
Key (black)0.8%

Color previews

#166dfd text on a black background

contrast 4.64:1

Card sample

#166dfd text on a white background

contrast 4.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #166dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #166dfd in the Color Lab