Skip to content

#166afb

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

RGB
22, 106, 251
HSL
218°, 97%, 54%
CMYK
91, 58, 0, 2
Luminance
0.1744

Every format

HEX#166afb
RGBrgb(22, 106, 251)
HSLhsl(218, 97%, 54%)
CMYKcmyk(91%, 58%, 0%, 2%)
LABlab(48.8 31.7 -78.3)
LCHlch(48.8 84.5 292.1)
OKLCHoklch(0.570 0.229 261.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#166afb on white: 4.68:1
AA ✓ pass · AA-large · AAA
Aa
#166afb on black: 4.49:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red8.6%
Green41.6%
Blue98.4%

CMYK percentages

Cyan91.2%
Magenta57.8%
Yellow0.0%
Key (black)1.6%

Color previews

#166afb text on a black background

contrast 4.49:1

Card sample

#166afb text on a white background

contrast 4.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #166afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #166afb in the Color Lab