Skip to content

#5b73eb

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

RGB
91, 115, 235
HSL
230°, 78%, 64%
CMYK
61, 51, 0, 8
Luminance
0.2048

At a glance

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

Hex
#5b73eb
Hue
230°
blue
Saturation
78%
electric
Lightness
64%
balanced
Brightness
92%
HSV value
Perceived
50%
weighted brightness
Luminance
0.2048
WCAG relative
Temperature
Cool
89/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
5.10:1
Closest name
Royal Blue
ΔE2000 4.8
Where it sits
Hue230° of 360°
Saturation78%
Lightness64%
Temperature
Warm ← → Cool89% 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#5b73eb
RGBrgb(91, 115, 235)
HSLhsl(230, 78%, 64%)
CMYKcmyk(61%, 51%, 0%, 8%)
LABlab(52.4 27.5 -63.5)
LCHlch(52.4 69.2 293.4)
OKLCHoklch(0.600 0.182 271.4)
Decimal5993451
Display P3color(display-p3 0.357 0.451 0.922)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5b73eb on white: 4.12:1
AA ✗ fail · AA-large · AAA
Aa
#5b73eb on black: 5.10:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2D84EF
deuteranopia · #0077E9
tritanopia · #008FA4

Color scale — 50 to 950

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

#F3F4FC
#E6E9F9
#C7CFF5
#9BAAF3
#5b73eb
#3754E7
#1B3BDA
#1631B6
#122791
#112069
#0B1442
Base = 400Lightest = 50 · #F3F4FCDarkest = 950 · #0B1442
:root {
  --brand-50: #F3F4FC;
  --brand-100: #E6E9F9;
  --brand-200: #C7CFF5;
  --brand-300: #9BAAF3;
  --brand-400: #5b73eb;
  --brand-500: #3754E7;
  --brand-600: #1B3BDA;
  --brand-700: #1631B6;
  --brand-800: #122791;
  --brand-900: #112069;
  --brand-950: #0B1442;
  --brand: #5b73eb;
  --brand-ink: #000000;
}

Colors that work with #5b73eb

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#C0C7ED
Hairlines and dividers
Muted text#4B589B
Captions on the surface
Accent#BA7412
Second voice, not a rival
Dark variant#0E1E72
Hover, pressed, headers
Light variant#E8ECFC
Selected rows, tints
Dark surface#141624
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 #5b73eb

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
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#EBD35B
Analogous left#5BBBEB
Analogous right#8B5BEB
Split-complement 1#EB8B5B
Split-complement 2#BBEB5B
Triadic 1#EB5B73
Triadic 2#73EB5B
Tetradic#EB5BBB

RGB percentages

Red35.7%
Green45.1%
Blue92.2%

CMYK percentages

Cyan61.3%
Magenta51.1%
Yellow0.0%
Key (black)7.8%

Color previews

#5b73eb text on a black background

contrast 5.10:1

Card sample

#5b73eb text on a white background

contrast 4.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5b73eb

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.

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

#5b73eb, answered

What color is #5b73eb?

#5b73eb is a balanced electric blue, closest to Royal Blue (ΔE2000 4.8). It sits at 230° on the hue wheel with 78% saturation and 64% lightness, which reads as cool.

What is the RGB value of #5b73eb?

rgb(91, 115, 235) — 91 red, 115 green and 235 blue out of 255, or 35.7% / 45.1% / 92.2% by channel.

Is #5b73eb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2048 and perceived brightness is 50%, so black text on it reaches 5.10:1.

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

Black. It scores 5.10:1 against #5b73eb, versus 4.12:1 for white — AA at any size.

What is the complementary color of #5b73eb?

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

What colors go well with #5b73eb?

For interface work: #F4F5FA as the surface, #C0C7ED for borders, #4B589B for secondary text, #BA7412 as an accent and #0E1E72 for hover and pressed states. For a palette, the analogous pair #5BBBEB and #8B5BEB stays calm, while #EBD35B is the loudest partner.

What is #5b73eb in CMYK for printing?

cmyk(61%, 51%, 0%, 8%). 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 #5b73eb warm or cool?

Cool — it scores 89 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #785BEB; nudged cooler, #598CED.

Work with #5b73eb in the Color Lab