Skip to content

#5975df

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

RGB
89, 117, 223
HSL
228°, 68%, 61%
CMYK
60, 48, 0, 13
Luminance
0.2017

At a glance

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

Hex
#5975df
Hue
228°
blue
Saturation
68%
vivid
Lightness
61%
balanced
Brightness
87%
HSV value
Perceived
50%
weighted brightness
Luminance
0.2017
WCAG relative
Temperature
Cool
90/100 cool
Color family
Blue
Tone
Vivid
Best ink
Black
5.03:1
Closest name
Royal Blue
ΔE2000 4.6
Where it sits
Hue228° of 360°
Saturation68%
Lightness61%
Temperature
Warm ← → Cool90% 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#5975df
RGBrgb(89, 117, 223)
HSLhsl(228, 68%, 61%)
CMYKcmyk(60%, 48%, 0%, 13%)
LABlab(52.0 21.9 -57.3)
LCHlch(52.0 61.3 290.9)
OKLCHoklch(0.595 0.164 269.7)
Decimal5862879
Display P3color(display-p3 0.349 0.459 0.875)

Copy-ready code

/* CSS */
color: #5975df;
background-color: #5975df;
/* Tailwind (arbitrary) */
class="text-[#5975df] bg-[#5975df]"
/* SCSS */
$brand: #5975df;
/* SwiftUI */
Color(red: 0.349, green: 0.459, blue: 0.875)
/* Android */
Color.parseColor("#5975df")
/* Flutter */
Color(0xFF5975DF)
/* Python / OpenCV (BGR) */
(223, 117, 89)

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

Accessibility — WCAG contrast

Aa
#5975df on white: 4.17:1
AA ✗ fail · AA-large · AAA
Aa
#5975df on black: 5.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4082E3
deuteranopia · #2876DD
tritanopia · #008D9F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5975df 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
#CAD2F2
#A1B1ED
#728AE4
#5975df
#284ACD
#213EAB
#1A3189
#172763
#0E183E
Base = 500Lightest = 50 · #F3F5FBDarkest = 950 · #0E183E
:root {
  --brand-50: #F3F5FB;
  --brand-100: #E8EBF8;
  --brand-200: #CAD2F2;
  --brand-300: #A1B1ED;
  --brand-400: #728AE4;
  --brand-500: #5975df;
  --brand-600: #284ACD;
  --brand-700: #213EAB;
  --brand-800: #1A3189;
  --brand-900: #172763;
  --brand-950: #0E183E;
  --brand: #5975df;
  --brand-ink: #000000;
}

Colors that work with #5975df

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#C0C9ED
Hairlines and dividers
Muted text#4B5B9B
Captions on the surface
Accent#AF6C1D
Second voice, not a rival
Dark variant#15276B
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 #5975df

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#DFC359
Analogous left#59B8DF
Analogous right#8059DF
Split-complement 1#DF8059
Split-complement 2#B8DF59
Triadic 1#DF5975
Triadic 2#75DF59
Tetradic#DF59B8

RGB percentages

Red34.9%
Green45.9%
Blue87.5%

CMYK percentages

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

Color previews

#5975df text on a black background

contrast 5.03:1

Card sample

#5975df text on a white background

contrast 4.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5975df

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.

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

#5975df, answered

What color is #5975df?

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

What is the RGB value of #5975df?

rgb(89, 117, 223) — 89 red, 117 green and 223 blue out of 255, or 34.9% / 45.9% / 87.5% by channel.

Is #5975df a light or a dark color?

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

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

Black. It scores 5.03:1 against #5975df, versus 4.17:1 for white — AA at any size.

What is the complementary color of #5975df?

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

What colors go well with #5975df?

For interface work: #F4F6FA as the surface, #C0C9ED for borders, #4B5B9B for secondary text, #AF6C1D as an accent and #15276B for hover and pressed states. For a palette, the analogous pair #59B8DF and #8059DF stays calm, while #DFC359 is the loudest partner.

What is #5975df in CMYK for printing?

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

Is #5975df warm or cool?

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

Work with #5975df in the Color Lab