Skip to content

#5b7afd

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

RGB
91, 122, 253
HSL
229°, 98%, 68%
CMYK
64, 52, 0, 1
Luminance
0.2324

At a glance

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

Hex
#5b7afd
Hue
229°
blue
Saturation
98%
electric
Lightness
68%
light
Brightness
99%
HSV value
Perceived
53%
weighted brightness
Luminance
0.2324
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.65:1
Closest name
Royal Blue
ΔE2000 7.5
Where it sits
Hue229° of 360°
Saturation98%
Lightness68%
Temperature
Warm ← → Cool90% 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#5b7afd
RGBrgb(91, 122, 253)
HSLhsl(229, 98%, 68%)
CMYKcmyk(64%, 52%, 0%, 1%)
LABlab(55.3 29.2 -68.7)
LCHlch(55.3 74.7 293.0)
OKLCHoklch(0.626 0.197 269.8)
Decimal5995261
Display P3color(display-p3 0.357 0.478 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5b7afd on white: 3.72:1
AA ✗ fail · AA-large · AAA
Aa
#5b7afd on black: 5.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #268CFF
deuteranopia · #007DFA
tritanopia · #0099B0

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5b7afd 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.

#F1F4FD
#E4E8FC
#C1CCFB
#90A5FE
#5b7afd
#214BFC
#0331F2
#0229CA
#0220A1
#061B74
#041149
Base = 400Lightest = 50 · #F1F4FDDarkest = 950 · #041149
:root {
  --brand-50: #F1F4FD;
  --brand-100: #E4E8FC;
  --brand-200: #C1CCFB;
  --brand-300: #90A5FE;
  --brand-400: #5b7afd;
  --brand-500: #214BFC;
  --brand-600: #0331F2;
  --brand-700: #0229CA;
  --brand-800: #0220A1;
  --brand-900: #061B74;
  --brand-950: #041149;
  --brand: #5b7afd;
  --brand-ink: #000000;
}

Colors that work with #5b7afd

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#F4F5FA
Tinted page background
Border#C0C8ED
Hairlines and dividers
Muted text#4B5A9B
Captions on the surface
Accent#CC7200
Second voice, not a rival
Dark variant#02197E
Hover, pressed, headers
Light variant#E6EBFF
Selected rows, tints
Dark surface#141724
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 #5b7afd

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

Works well for
  • Headings from 24px up on white
  • 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
  • Small text on white — under 4.5:1
  • 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#FDDE5B
Analogous left#5BCBFD
Analogous right#8D5BFD
Split-complement 1#FD8D5B
Split-complement 2#CBFD5B
Triadic 1#FD5B7A
Triadic 2#7AFD5B
Tetradic#FD5BCB

RGB percentages

Red35.7%
Green47.8%
Blue99.2%

CMYK percentages

Cyan64.0%
Magenta51.8%
Yellow0.0%
Key (black)0.8%

Color previews

#5b7afd text on a black background

contrast 5.65:1

Card sample

#5b7afd text on a white background

contrast 3.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5b7afd

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.

#5b7afd 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.

#5b7afd, answered

What color is #5b7afd?

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

What is the RGB value of #5b7afd?

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

Is #5b7afd a light or a dark color?

It is a mid-tone. Relative luminance is 0.2324 and perceived brightness is 53%, so black text on it reaches 5.65:1.

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

Black. It scores 5.65:1 against #5b7afd, versus 3.72:1 for white — AA at any size.

What is the complementary color of #5b7afd?

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

What colors go well with #5b7afd?

For interface work: #F4F5FA as the surface, #C0C8ED for borders, #4B5A9B for secondary text, #CC7200 as an accent and #02197E for hover and pressed states. For a palette, the analogous pair #5BCBFD and #8D5BFD stays calm, while #FDDE5B is the loudest partner.

What is #5b7afd in CMYK for printing?

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

Cool — it scores 90 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #785BFD; nudged cooler, #5A92FF.

Work with #5b7afd in the Color Lab