Skip to content

#5b9dfd

a light, electric blue · cool · closest name: Cornflower Blue

RGB
91, 157, 253
HSL
216°, 98%, 68%
CMYK
64, 38, 0, 1
Luminance
0.3343

At a glance

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

Hex
#5b9dfd
Hue
216°
blue
Saturation
98%
electric
Lightness
68%
light
Brightness
99%
HSV value
Perceived
61%
weighted brightness
Luminance
0.3343
WCAG relative
Temperature
Cool
97/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
7.69:1
Closest name
Cornflower Blue
ΔE2000 3.4
Where it sits
Hue216° of 360°
Saturation98%
Lightness68%
Temperature
Warm ← → Cool97% 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#5b9dfd
RGBrgb(91, 157, 253)
HSLhsl(216, 98%, 68%)
CMYKcmyk(64%, 38%, 0%, 1%)
LABlab(64.5 8.3 -54.0)
LCHlch(64.5 54.6 278.7)
OKLCHoklch(0.696 0.157 257.8)
Decimal6004221
Display P3color(display-p3 0.357 0.616 0.992)

Copy-ready code

/* CSS */
color: #5b9dfd;
background-color: #5b9dfd;
/* Tailwind (arbitrary) */
class="text-[#5b9dfd] bg-[#5b9dfd]"
/* SCSS */
$brand: #5b9dfd;
/* SwiftUI */
Color(red: 0.357, green: 0.616, blue: 0.992)
/* Android */
Color.parseColor("#5b9dfd")
/* Flutter */
Color(0xFF5B9DFD)
/* Python / OpenCV (BGR) */
(253, 157, 91)

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#000000 on #5b9dfd · 7.69:1
Use #000000AAA at every size.
Aa
White text · 2.73:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.69:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #5b9dfd as text scores 2.73:1 on white and 7.69:1 on black.

Accessibility — WCAG contrast

Aa
#5b9dfd on white: 2.73:1
AA ✗ fail · AA-large · AAA
Aa
#5b9dfd on black: 7.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #72A5FF
deuteranopia · #5B95FB
tritanopia · #00B3C1

Color scale — 50 to 950

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

#F1F6FD
#E4EDFC
#C1D8FB
#90BDFE
#5b9dfd
#217AFC
#0364F2
#0253CA
#0243A1
#063374
#042049
Base = 400Lightest = 50 · #F1F6FDDarkest = 950 · #042049
:root {
  --brand-50: #F1F6FD;
  --brand-100: #E4EDFC;
  --brand-200: #C1D8FB;
  --brand-300: #90BDFE;
  --brand-400: #5b9dfd;
  --brand-500: #217AFC;
  --brand-600: #0364F2;
  --brand-700: #0253CA;
  --brand-800: #0243A1;
  --brand-900: #063374;
  --brand-950: #042049;
  --brand: #5b9dfd;
  --brand-ink: #000000;
}

Colors that work with #5b9dfd

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

Text on it#000000
Black wins here
Surface#F4F7FA
Tinted page background
Border#C0D2ED
Hairlines and dividers
Muted text#4B6B9B
Captions on the surface
Accent#CC4600
Second voice, not a rival
Dark variant#02347E
Hover, pressed, headers
Light variant#E6F0FF
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 #5b9dfd

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

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#FDBB5B
Analogous left#5BEEFD
Analogous right#6A5BFD
Split-complement 1#FD6A5B
Split-complement 2#EEFD5B
Triadic 1#FD5B9D
Triadic 2#9DFD5B
Tetradic#FD5BEE

RGB percentages

Red35.7%
Green61.6%
Blue99.2%

CMYK percentages

Cyan64.0%
Magenta37.9%
Yellow0.0%
Key (black)0.8%

Color previews

#5b9dfd text on a black background

contrast 7.69:1

Card sample

#5b9dfd text on a white background

contrast 2.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5b9dfd;
Background color
Panel with #5b9dfd background
background-color: #5b9dfd;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5b9dfd;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(91, 157, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(91, 157, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5b9dfd;
background: linear-gradient(135deg, #5b9dfd, #855BFD);

Monochromatic scale

Palettes built from #5b9dfd

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.

#5b9dfd 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#5b9dfd, answered

What color is #5b9dfd?

#5b9dfd is a light electric blue, closest to Cornflower Blue (ΔE2000 3.4). It sits at 216° on the hue wheel with 98% saturation and 68% lightness, which reads as cool.

What is the RGB value of #5b9dfd?

rgb(91, 157, 253) — 91 red, 157 green and 253 blue out of 255, or 35.7% / 61.6% / 99.2% by channel.

Is #5b9dfd a light or a dark color?

It is a mid-tone. Relative luminance is 0.3343 and perceived brightness is 61%, so black text on it reaches 7.69:1.

Should I use black or white text on #5b9dfd?

Black. It scores 7.69:1 against #5b9dfd, versus 2.73:1 for white — AAA at any size.

What is the complementary color of #5b9dfd?

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

What colors go well with #5b9dfd?

For interface work: #F4F7FA as the surface, #C0D2ED for borders, #4B6B9B for secondary text, #CC4600 as an accent and #02347E for hover and pressed states. For a palette, the analogous pair #5BEEFD and #6A5BFD stays calm, while #FDBB5B is the loudest partner.

What is #5b9dfd in CMYK for printing?

cmyk(64%, 38%, 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 #5b9dfd warm or cool?

Cool — it scores 97 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #5B62FD; nudged cooler, #4094FF.

Work with #5b9dfd in the Color Lab