Skip to content

#166fef

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

RGB
22, 111, 239
HSL
215°, 87%, 51%
CMYK
91, 54, 0, 6
Luminance
0.1777

Every format

HEX#166fef
RGBrgb(22, 111, 239)
HSLhsl(215, 87%, 51%)
CMYKcmyk(91%, 54%, 0%, 6%)
LABlab(49.2 24.0 -71.0)
LCHlch(49.2 74.9 288.7)
OKLCHoklch(0.570 0.209 259.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#166fef on white: 4.61:1
AA ✓ pass · AA-large · AAA
Aa
#166fef on black: 4.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red8.6%
Green43.5%
Blue93.7%

CMYK percentages

Cyan90.8%
Magenta53.6%
Yellow0.0%
Key (black)6.3%

Color previews

#166fef text on a black background

contrast 4.55:1

Card sample

#166fef text on a white background

contrast 4.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(22, 111, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 111, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #166fef;
background: linear-gradient(135deg, #166fef, #4E16EF);

Monochromatic scale

Palettes built from #166fef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #166fef in the Color Lab