Skip to content

#5b7cd2

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

RGB
91, 124, 210
HSL
223°, 57%, 59%
CMYK
57, 41, 0, 18
Luminance
0.2129

At a glance

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

Hex
#5b7cd2
Hue
223°
blue
Saturation
57%
vivid
Lightness
59%
balanced
Brightness
82%
HSV value
Perceived
50%
weighted brightness
Luminance
0.2129
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.26:1
Closest name
Royal Blue
ΔE2000 6.8
Where it sits
Hue223° of 360°
Saturation57%
Lightness59%
Temperature
Warm ← → Cool93% 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#5b7cd2
RGBrgb(91, 124, 210)
HSLhsl(223, 57%, 59%)
CMYKcmyk(57%, 41%, 0%, 18%)
LABlab(53.3 13.7 -48.0)
LCHlch(53.3 49.9 285.9)
OKLCHoklch(0.602 0.137 266.5)
Decimal5995730
Display P3color(display-p3 0.357 0.486 0.824)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5b7cd2 on white: 3.99:1
AA ✗ fail · AA-large · AAA
Aa
#5b7cd2 on black: 5.26:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5785D5
deuteranopia · #487AD0
tritanopia · #028F9D

Color scale — 50 to 950

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

#F4F6FB
#E9EDF6
#CDD6EE
#A7B9E7
#7B95DB
#5b7cd2
#355BC0
#2C4CA0
#233D80
#1D2F5D
#121D3A
Base = 500Lightest = 50 · #F4F6FBDarkest = 950 · #121D3A
:root {
  --brand-50: #F4F6FB;
  --brand-100: #E9EDF6;
  --brand-200: #CDD6EE;
  --brand-300: #A7B9E7;
  --brand-400: #7B95DB;
  --brand-500: #5b7cd2;
  --brand-600: #355BC0;
  --brand-700: #2C4CA0;
  --brand-800: #233D80;
  --brand-900: #1D2F5D;
  --brand-950: #121D3A;
  --brand: #5b7cd2;
  --brand-ink: #000000;
}

Colors that work with #5b7cd2

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#F4F6FA
Tinted page background
Border#C0CCED
Hairlines and dividers
Muted text#4B619B
Captions on the surface
Accent#A46228
Second voice, not a rival
Dark variant#1B3064
Hover, pressed, headers
Light variant#EBEFFA
Selected rows, tints
Dark surface#141824
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 #5b7cd2

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#D2B15B
Analogous left#5BB7D2
Analogous right#765BD2
Split-complement 1#D2765B
Split-complement 2#B7D25B
Triadic 1#D25B7C
Triadic 2#7CD25B
Tetradic#D25BB7

RGB percentages

Red35.7%
Green48.6%
Blue82.4%

CMYK percentages

Cyan56.7%
Magenta41.0%
Yellow0.0%
Key (black)17.6%

Color previews

#5b7cd2 text on a black background

contrast 5.26:1

Card sample

#5b7cd2 text on a white background

contrast 3.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(91, 124, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(91, 124, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5b7cd2;
background: linear-gradient(135deg, #5b7cd2, #895BD2);

Monochromatic scale

Palettes built from #5b7cd2

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.

#5b7cd2 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

Converts to four-color process without much drama. Proof it anyway.

#5b7cd2, answered

What color is #5b7cd2?

#5b7cd2 is a balanced vivid blue, closest to Royal Blue (ΔE2000 6.8). It sits at 223° on the hue wheel with 57% saturation and 59% lightness, which reads as cool.

What is the RGB value of #5b7cd2?

rgb(91, 124, 210) — 91 red, 124 green and 210 blue out of 255, or 35.7% / 48.6% / 82.4% by channel.

Is #5b7cd2 a light or a dark color?

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

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

Black. It scores 5.26:1 against #5b7cd2, versus 3.99:1 for white — AA at any size.

What is the complementary color of #5b7cd2?

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

What colors go well with #5b7cd2?

For interface work: #F4F6FA as the surface, #C0CCED for borders, #4B619B for secondary text, #A46228 as an accent and #1B3064 for hover and pressed states. For a palette, the analogous pair #5BB7D2 and #765BD2 stays calm, while #D2B15B is the loudest partner.

What is #5b7cd2 in CMYK for printing?

cmyk(57%, 41%, 0%, 18%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #5b7cd2 warm or cool?

Cool — it scores 93 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #665BD2; nudged cooler, #598AD4.

Work with #5b7cd2 in the Color Lab