Skip to content

#166bfd

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

RGB
22, 107, 253
HSL
218°, 98%, 54%
CMYK
91, 58, 0, 1
Luminance
0.1778

At a glance

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

Hex
#166bfd
Hue
218°
blue
Saturation
98%
electric
Lightness
54%
balanced
Brightness
99%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1778
WCAG relative
Temperature
Cool
96/100 cool
Color family
Blue
Tone
Electric
Best ink
White
4.61:1
Closest name
Royal Blue
ΔE2000 3.5
Where it sits
Hue218° of 360°
Saturation98%
Lightness54%
Temperature
Warm ← → Cool96% 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#166bfd
RGBrgb(22, 107, 253)
HSLhsl(218, 98%, 54%)
CMYKcmyk(91%, 58%, 0%, 1%)
LABlab(49.2 31.9 -78.7)
LCHlch(49.2 84.9 292.0)
OKLCHoklch(0.574 0.231 261.1)
Decimal1469437
Display P3color(display-p3 0.086 0.420 0.992)

Copy-ready code

/* CSS */
color: #166bfd;
background-color: #166bfd;
/* Tailwind (arbitrary) */
class="text-[#166bfd] bg-[#166bfd]"
/* SCSS */
$brand: #166bfd;
/* SwiftUI */
Color(red: 0.086, green: 0.420, blue: 0.992)
/* Android */
Color.parseColor("#166bfd")
/* Flutter */
Color(0xFF166BFD)
/* Python / OpenCV (BGR) */
(253, 107, 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 #166bfd · 4.61:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.61:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.56:1
AA pass · AA large pass · AAA fail
Reading the other direction: #166bfd as text scores 4.61:1 on white and 4.56:1 on black.

Accessibility — WCAG contrast

Aa
#166bfd on white: 4.61:1
AA ✓ pass · AA-large · AAA
Aa
#166bfd on black: 4.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #007FFF
deuteranopia · #006BFA
tritanopia · #0091AA

Color scale — 50 to 950

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

#F1F6FD
#E3ECFC
#C1D6FB
#90B8FE
#5895FE
#166bfd
#025BF3
#024CCA
#013CA2
#062F75
#041D49
Base = 500Lightest = 50 · #F1F6FDDarkest = 950 · #041D49
:root {
  --brand-50: #F1F6FD;
  --brand-100: #E3ECFC;
  --brand-200: #C1D6FB;
  --brand-300: #90B8FE;
  --brand-400: #5895FE;
  --brand-500: #166bfd;
  --brand-600: #025BF3;
  --brand-700: #024CCA;
  --brand-800: #013CA2;
  --brand-900: #062F75;
  --brand-950: #041D49;
  --brand: #166bfd;
  --brand-ink: #ffffff;
}

Colors that work with #166bfd

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#C0D0ED
Hairlines and dividers
Muted text#4B689B
Captions on the surface
Accent#CC4E00
Second voice, not a rival
Dark variant#012F7E
Hover, pressed, headers
Light variant#E6EFFF
Selected rows, tints
Dark surface#141A24
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 #166bfd

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

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • 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#FDA816
Analogous left#16DFFD
Analogous right#3416FD
Split-complement 1#FD3416
Split-complement 2#DFFD16
Triadic 1#FD166B
Triadic 2#6BFD16
Tetradic#FD16DF

RGB percentages

Red8.6%
Green42.0%
Blue99.2%

CMYK percentages

Cyan91.3%
Magenta57.7%
Yellow0.0%
Key (black)0.8%

Color previews

#166bfd text on a black background

contrast 4.56:1

Card sample

#166bfd text on a white background

contrast 4.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #166bfd

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.

#166bfd 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.

#166bfd, answered

What color is #166bfd?

#166bfd is a balanced electric blue, closest to Royal Blue (ΔE2000 3.5). It sits at 218° on the hue wheel with 98% saturation and 54% lightness, which reads as cool.

What is the RGB value of #166bfd?

rgb(22, 107, 253) — 22 red, 107 green and 253 blue out of 255, or 8.6% / 42% / 99.2% by channel.

Is #166bfd a light or a dark color?

It is a dark color. Relative luminance is 0.1778 and perceived brightness is 47%, so white text on it reaches 4.61:1.

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

White. It scores 4.61:1 against #166bfd, versus 4.56:1 for black — AA at any size.

What is the complementary color of #166bfd?

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

What colors go well with #166bfd?

For interface work: #F4F7FA as the surface, #C0D0ED for borders, #4B689B for secondary text, #CC4E00 as an accent and #012F7E for hover and pressed states. For a palette, the analogous pair #16DFFD and #3416FD stays calm, while #FDA816 is the loudest partner.

What is #166bfd in CMYK for printing?

cmyk(91%, 58%, 0%, 1%). 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 #166bfd warm or cool?

Cool — it scores 96 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1616FD; nudged cooler, #0067F9.

Work with #166bfd in the Color Lab