Skip to content

#166ed9

a balanced, electric blue · cool · closest name: Royal Blue

RGB
22, 110, 217
HSL
213°, 82%, 47%
CMYK
90, 49, 0, 15
Luminance
0.1633

At a glance

Every number on this page in one read: what #166ed9 is made of, how bright it looks, and which way it leans.

Hex
#166ed9
Hue
213°
blue
Saturation
82%
electric
Lightness
47%
balanced
Brightness
85%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1633
WCAG relative
Temperature
Cool
98/100 cool
Color family
Blue
Tone
Electric
Best ink
White
4.92:1
Closest name
Royal Blue
ΔE2000 5.1
Where it sits
Hue213° of 360°
Saturation82%
Lightness47%
Temperature
Warm ← → Cool98% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#166ed9
RGBrgb(22, 110, 217)
HSLhsl(213, 82%, 47%)
CMYKcmyk(90%, 49%, 0%, 15%)
LABlab(47.4 16.1 -61.5)
LCHlch(47.4 63.5 284.7)
OKLCHoklch(0.551 0.182 256.9)
Decimal1470169
Display P3color(display-p3 0.086 0.431 0.851)

Copy-ready code

/* CSS */
color: #166ed9;
background-color: #166ed9;
/* Tailwind (arbitrary) */
class="text-[#166ed9] bg-[#166ed9]"
/* SCSS */
$brand: #166ed9;
/* SwiftUI */
Color(red: 0.086, green: 0.431, blue: 0.851)
/* Android */
Color.parseColor("#166ed9")
/* Flutter */
Color(0xFF166ED9)
/* Python / OpenCV (BGR) */
(217, 110, 22)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #166ed9 · 4.92:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.92:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.27:1
AA fail · AA large pass · AAA fail
Reading the other direction: #166ed9 as text scores 4.92:1 on white and 4.27:1 on black.

Accessibility — WCAG contrast

Aa
#166ed9 on white: 4.92:1
AA ✓ pass · AA-large · AAA
Aa
#166ed9 on black: 4.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2A79DD
deuteranopia · #0069D7
tritanopia · #008899

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #166ed9 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F2F7FC
#E6EFF9
#C6DCF6
#99C2F5
#66A4F0
#3386EA
#166ed9
#135EB9
#0F4B94
#0F396B
#0A2343
Base = 600Lightest = 50 · #F2F7FCDarkest = 950 · #0A2343
:root {
  --brand-50: #F2F7FC;
  --brand-100: #E6EFF9;
  --brand-200: #C6DCF6;
  --brand-300: #99C2F5;
  --brand-400: #66A4F0;
  --brand-500: #3386EA;
  --brand-600: #166ed9;
  --brand-700: #135EB9;
  --brand-800: #0F4B94;
  --brand-900: #0F396B;
  --brand-950: #0A2343;
  --brand: #166ed9;
  --brand-ink: #ffffff;
}

Colors that work with #166ed9

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4F7FA
Tinted page background
Border#C0D4ED
Hairlines and dividers
Muted text#4B6F9B
Captions on the surface
Accent#DE4E11
Second voice, not a rival
Dark variant#0C3B74
Hover, pressed, headers
Light variant#E8F1FD
Selected rows, tints
Dark surface#141B24
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #166ed9

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#D98116
Analogous left#16D0D9
Analogous right#1F16D9
Split-complement 1#D91F16
Split-complement 2#D0D916
Triadic 1#D9166E
Triadic 2#6ED916
Tetradic#D916D0

RGB percentages

Red8.6%
Green43.1%
Blue85.1%

CMYK percentages

Cyan89.9%
Magenta49.3%
Yellow0.0%
Key (black)14.9%

Color previews

#166ed9 text on a black background

contrast 4.27:1

Card sample

#166ed9 text on a white background

contrast 4.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(22, 110, 217, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(22, 110, 217, 0.45);
Border & gradient
Gradient panel
border: 3px solid #166ed9;
background: linear-gradient(135deg, #166ed9, #4016D9);

Monochromatic scale

Palettes built from #166ed9

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#166ed9 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#166ed9, answered

What color is #166ed9?

#166ed9 is a balanced electric blue, closest to Royal Blue (ΔE2000 5.1). It sits at 213° on the hue wheel with 82% saturation and 47% lightness, which reads as cool.

What is the RGB value of #166ed9?

rgb(22, 110, 217) — 22 red, 110 green and 217 blue out of 255, or 8.6% / 43.1% / 85.1% by channel.

Is #166ed9 a light or a dark color?

It is a dark color. Relative luminance is 0.1633 and perceived brightness is 44%, so white text on it reaches 4.92:1.

Should I use black or white text on #166ed9?

White. It scores 4.92:1 against #166ed9, versus 4.27:1 for black — AA at any size.

What is the complementary color of #166ed9?

#D98116 sits directly opposite on the wheel. Softer options are the split-complements #D91F16 and #D0D916, which give the same contrast with far less vibration.

What colors go well with #166ed9?

For interface work: #F4F7FA as the surface, #C0D4ED for borders, #4B6F9B for secondary text, #DE4E11 as an accent and #0C3B74 for hover and pressed states. For a palette, the analogous pair #16D0D9 and #1F16D9 stays calm, while #D98116 is the loudest partner.

What is #166ed9 in CMYK for printing?

cmyk(90%, 49%, 0%, 15%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #166ed9 warm or cool?

Cool — it scores 98 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1627D9; nudged cooler, #1264C4.

Work with #166ed9 in the Color Lab