Skip to content

#166df4

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

RGB
22, 109, 244
HSL
217°, 91%, 52%
CMYK
91, 55, 0, 4
Luminance
0.1764

Every format

HEX#166df4
RGBrgb(22, 109, 244)
HSLhsl(217, 91%, 52%)
CMYKcmyk(91%, 55%, 0%, 4%)
LABlab(49.0 27.2 -74.0)
LCHlch(49.0 78.8 290.2)
OKLCHoklch(0.570 0.217 260.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red8.6%
Green42.7%
Blue95.7%

CMYK percentages

Cyan91.0%
Magenta55.3%
Yellow0.0%
Key (black)4.3%

Color previews

#166df4 text on a black background

contrast 4.53:1

Card sample

#166df4 text on a white background

contrast 4.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #166df4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #166df4 in the Color Lab