Skip to content

#5876df

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

RGB
88, 118, 223
HSL
227°, 68%, 61%
CMYK
61, 47, 0, 13
Luminance
0.2036

At a glance

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

Hex
#5876df
Hue
227°
blue
Saturation
68%
vivid
Lightness
61%
balanced
Brightness
87%
HSV value
Perceived
50%
weighted brightness
Luminance
0.2036
WCAG relative
Temperature
Cool
91/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.07:1
Closest name
Royal Blue
ΔE2000 4.8
Where it sits
Hue227° of 360°
Saturation68%
Lightness61%
Temperature
Warm ← → Cool91% 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#5876df
RGBrgb(88, 118, 223)
HSLhsl(227, 68%, 61%)
CMYKcmyk(61%, 47%, 0%, 13%)
LABlab(52.2 21.1 -57.0)
LCHlch(52.2 60.8 290.3)
OKLCHoklch(0.596 0.163 269.0)
Decimal5797599
Display P3color(display-p3 0.345 0.463 0.875)

Copy-ready code

/* CSS */
color: #5876df;
background-color: #5876df;
/* Tailwind (arbitrary) */
class="text-[#5876df] bg-[#5876df]"
/* SCSS */
$brand: #5876df;
/* SwiftUI */
Color(red: 0.345, green: 0.463, blue: 0.875)
/* Android */
Color.parseColor("#5876df")
/* Flutter */
Color(0xFF5876DF)
/* Python / OpenCV (BGR) */
(223, 118, 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 #5876df · 5.07:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.14:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.07:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #5876df as text scores 4.14:1 on white and 5.07:1 on black.

Accessibility — WCAG contrast

Aa
#5876df on white: 4.14:1
AA ✗ fail · AA-large · AAA
Aa
#5876df on black: 5.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4283E3
deuteranopia · #2A77DD
tritanopia · #008EA0

Color scale — 50 to 950

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

#F3F5FB
#E8EBF8
#CAD3F2
#A1B2ED
#728BE4
#5876df
#274CCD
#2140AB
#1A3389
#172863
#0E193E
Base = 500Lightest = 50 · #F3F5FBDarkest = 950 · #0E193E
:root {
  --brand-50: #F3F5FB;
  --brand-100: #E8EBF8;
  --brand-200: #CAD3F2;
  --brand-300: #A1B2ED;
  --brand-400: #728BE4;
  --brand-500: #5876df;
  --brand-600: #274CCD;
  --brand-700: #2140AB;
  --brand-800: #1A3389;
  --brand-900: #172863;
  --brand-950: #0E193E;
  --brand: #5876df;
  --brand-ink: #000000;
}

Colors that work with #5876df

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#C0CAED
Hairlines and dividers
Muted text#4B5C9B
Captions on the surface
Accent#AF6B1D
Second voice, not a rival
Dark variant#15286B
Hover, pressed, headers
Light variant#EAEDFB
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 #5876df

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#DFC158
Analogous left#58B9DF
Analogous right#7E58DF
Split-complement 1#DF7E58
Split-complement 2#B9DF58
Triadic 1#DF5876
Triadic 2#76DF58
Tetradic#DF58B9

RGB percentages

Red34.5%
Green46.3%
Blue87.5%

CMYK percentages

Cyan60.5%
Magenta47.1%
Yellow0.0%
Key (black)12.5%

Color previews

#5876df text on a black background

contrast 5.07:1

Card sample

#5876df text on a white background

contrast 4.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #5876df;
Background color
Panel with #5876df background
background-color: #5876df;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #5876df;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(88, 118, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(88, 118, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5876df;
background: linear-gradient(135deg, #5876df, #9458DF);

Monochromatic scale

Palettes built from #5876df

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.

#5876df 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.

#5876df, answered

What color is #5876df?

#5876df is a balanced vivid blue, closest to Royal Blue (ΔE2000 4.8). It sits at 227° on the hue wheel with 68% saturation and 61% lightness, which reads as cool.

What is the RGB value of #5876df?

rgb(88, 118, 223) — 88 red, 118 green and 223 blue out of 255, or 34.5% / 46.3% / 87.5% by channel.

Is #5876df a light or a dark color?

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

Should I use black or white text on #5876df?

Black. It scores 5.07:1 against #5876df, versus 4.14:1 for white — AA at any size.

What is the complementary color of #5876df?

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

What colors go well with #5876df?

For interface work: #F4F6FA as the surface, #C0CAED for borders, #4B5C9B for secondary text, #AF6B1D as an accent and #15286B for hover and pressed states. For a palette, the analogous pair #58B9DF and #7E58DF stays calm, while #DFC158 is the loudest partner.

What is #5876df in CMYK for printing?

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

Is #5876df warm or cool?

Cool — it scores 91 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6C58DF; nudged cooler, #5689E1.

Work with #5876df in the Color Lab