Skip to content

#5877d2

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

RGB
88, 119, 210
HSL
225°, 58%, 58%
CMYK
58, 43, 0, 18
Luminance
0.1992

At a glance

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

Hex
#5877d2
Hue
225°
blue
Saturation
58%
vivid
Lightness
58%
balanced
Brightness
82%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1992
WCAG relative
Temperature
Cool
92/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
4.98:1
Closest name
Royal Blue
ΔE2000 5.2
Where it sits
Hue225° of 360°
Saturation58%
Lightness58%
Temperature
Warm ← → Cool92% 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#5877d2
RGBrgb(88, 119, 210)
HSLhsl(225, 58%, 58%)
CMYKcmyk(58%, 43%, 0%, 18%)
LABlab(51.8 16.1 -50.4)
LCHlch(51.8 52.9 287.8)
OKLCHoklch(0.590 0.144 267.7)
Decimal5797842
Display P3color(display-p3 0.345 0.467 0.824)

Copy-ready code

/* CSS */
color: #5877d2;
background-color: #5877d2;
/* Tailwind (arbitrary) */
class="text-[#5877d2] bg-[#5877d2]"
/* SCSS */
$brand: #5877d2;
/* SwiftUI */
Color(red: 0.345, green: 0.467, blue: 0.824)
/* Android */
Color.parseColor("#5877d2")
/* Flutter */
Color(0xFF5877D2)
/* Python / OpenCV (BGR) */
(210, 119, 88)

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 #5877d2 · 4.98:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.21:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.98:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #5877d2 as text scores 4.21:1 on white and 4.98:1 on black.

Accessibility — WCAG contrast

Aa
#5877d2 on white: 4.21:1
AA ✗ fail · AA-large · AAA
Aa
#5877d2 on black: 4.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4E81D5
deuteranopia · #3E76D0
tritanopia · #008B9A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5877d2 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
#E9ECF7
#CDD6EF
#A7B7E7
#7A93DB
#5877d2
#3458C1
#2B49A1
#233A81
#1D2D5E
#121C3A
Base = 500Lightest = 50 · #F4F6FBDarkest = 950 · #121C3A
:root {
  --brand-50: #F4F6FB;
  --brand-100: #E9ECF7;
  --brand-200: #CDD6EF;
  --brand-300: #A7B7E7;
  --brand-400: #7A93DB;
  --brand-500: #5877d2;
  --brand-600: #3458C1;
  --brand-700: #2B49A1;
  --brand-800: #233A81;
  --brand-900: #1D2D5E;
  --brand-950: #121C3A;
  --brand: #5877d2;
  --brand-ink: #000000;
}

Colors that work with #5877d2

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#C0CBED
Hairlines and dividers
Muted text#4B5F9B
Captions on the surface
Accent#A56527
Second voice, not a rival
Dark variant#1B2E64
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 #5877d2

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#D2B358
Analogous left#58B4D2
Analogous right#7658D2
Split-complement 1#D27658
Split-complement 2#B4D258
Triadic 1#D25877
Triadic 2#77D258
Tetradic#D258B4

RGB percentages

Red34.5%
Green46.7%
Blue82.4%

CMYK percentages

Cyan58.1%
Magenta43.3%
Yellow0.0%
Key (black)17.6%

Color previews

#5877d2 text on a black background

contrast 4.98:1

Card sample

#5877d2 text on a white background

contrast 4.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5877d2;
Background color
Panel with #5877d2 background
background-color: #5877d2;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5877d2;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(88, 119, 210, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(88, 119, 210, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5877d2;
background: linear-gradient(135deg, #5877d2, #8A58D2);

Monochromatic scale

Palettes built from #5877d2

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.

#5877d2 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.

#5877d2, answered

What color is #5877d2?

#5877d2 is a balanced vivid blue, closest to Royal Blue (ΔE2000 5.2). It sits at 225° on the hue wheel with 58% saturation and 58% lightness, which reads as cool.

What is the RGB value of #5877d2?

rgb(88, 119, 210) — 88 red, 119 green and 210 blue out of 255, or 34.5% / 46.7% / 82.4% by channel.

Is #5877d2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1992 and perceived brightness is 49%, so black text on it reaches 4.98:1.

Should I use black or white text on #5877d2?

Black. It scores 4.98:1 against #5877d2, versus 4.21:1 for white — AA at any size.

What is the complementary color of #5877d2?

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

What colors go well with #5877d2?

For interface work: #F4F6FA as the surface, #C0CBED for borders, #4B5F9B for secondary text, #A56527 as an accent and #1B2E64 for hover and pressed states. For a palette, the analogous pair #58B4D2 and #7658D2 stays calm, while #D2B358 is the loudest partner.

What is #5877d2 in CMYK for printing?

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

Is #5877d2 warm or cool?

Cool — it scores 92 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6658D2; nudged cooler, #5687D4.

Work with #5877d2 in the Color Lab