Skip to content

#5b7bc9

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

RGB
91, 123, 201
HSL
223°, 51%, 57%
CMYK
55, 39, 0, 21
Luminance
0.2061

At a glance

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

Hex
#5b7bc9
Hue
223°
blue
Saturation
51%
vivid
Lightness
57%
balanced
Brightness
79%
HSV value
Perceived
50%
weighted brightness
Luminance
0.2061
WCAG relative
Temperature
Cool
93/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.12:1
Closest name
Royal Blue
ΔE2000 6.8
Where it sits
Hue223° of 360°
Saturation51%
Lightness57%
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#5b7bc9
RGBrgb(91, 123, 201)
HSLhsl(223, 51%, 57%)
CMYKcmyk(55%, 39%, 0%, 21%)
LABlab(52.5 11.4 -44.1)
LCHlch(52.5 45.5 284.5)
OKLCHoklch(0.595 0.125 265.9)
Decimal5995465
Display P3color(display-p3 0.357 0.482 0.788)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5b7bc9 on white: 4.10:1
AA ✗ fail · AA-large · AAA
Aa
#5b7bc9 on black: 5.12:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5B83CC
deuteranopia · #4E79C7
tritanopia · #1C8C98

Color scale — 50 to 950

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

#F4F6FA
#EAEDF6
#CFD8ED
#ABBBE3
#8099D5
#5b7bc9
#3D61B8
#32519A
#28407B
#21315A
#141F38
Base = 500Lightest = 50 · #F4F6FADarkest = 950 · #141F38
:root {
  --brand-50: #F4F6FA;
  --brand-100: #EAEDF6;
  --brand-200: #CFD8ED;
  --brand-300: #ABBBE3;
  --brand-400: #8099D5;
  --brand-500: #5b7bc9;
  --brand-600: #3D61B8;
  --brand-700: #32519A;
  --brand-800: #28407B;
  --brand-900: #21315A;
  --brand-950: #141F38;
  --brand: #5b7bc9;
  --brand-ink: #000000;
}

Colors that work with #5b7bc9

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#C2CEEB
Hairlines and dividers
Muted text#4B629B
Captions on the surface
Accent#9D612F
Second voice, not a rival
Dark variant#203260
Hover, pressed, headers
Light variant#ECF0F9
Selected rows, tints
Dark surface#141924
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 #5b7bc9

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#C9A95B
Analogous left#5BB2C9
Analogous right#725BC9
Split-complement 1#C9725B
Split-complement 2#B2C95B
Triadic 1#C95B7B
Triadic 2#7BC95B
Tetradic#C95BB2

RGB percentages

Red35.7%
Green48.2%
Blue78.8%

CMYK percentages

Cyan54.7%
Magenta38.8%
Yellow0.0%
Key (black)21.2%

Color previews

#5b7bc9 text on a black background

contrast 5.12:1

Card sample

#5b7bc9 text on a white background

contrast 4.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(91, 123, 201, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(91, 123, 201, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5b7bc9;
background: linear-gradient(135deg, #5b7bc9, #845BC9);

Monochromatic scale

Palettes built from #5b7bc9

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.

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

#5b7bc9, answered

What color is #5b7bc9?

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

What is the RGB value of #5b7bc9?

rgb(91, 123, 201) — 91 red, 123 green and 201 blue out of 255, or 35.7% / 48.2% / 78.8% by channel.

Is #5b7bc9 a light or a dark color?

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

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

Black. It scores 5.12:1 against #5b7bc9, versus 4.10:1 for white — AA at any size.

What is the complementary color of #5b7bc9?

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

What colors go well with #5b7bc9?

For interface work: #F4F6FA as the surface, #C2CEEB for borders, #4B629B for secondary text, #9D612F as an accent and #203260 for hover and pressed states. For a palette, the analogous pair #5BB2C9 and #725BC9 stays calm, while #C9A95B is the loudest partner.

What is #5b7bc9 in CMYK for printing?

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

Is #5b7bc9 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 #635BC9; nudged cooler, #5987CB.

Work with #5b7bc9 in the Color Lab