Skip to content

#5757df

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

RGB
87, 87, 223
HSL
240°, 68%, 61%
CMYK
61, 61, 0, 13
Luminance
0.1417

At a glance

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

Hex
#5757df
Hue
240°
blue
Saturation
68%
vivid
Lightness
61%
balanced
Brightness
87%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1417
WCAG relative
Temperature
Cool
83/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
5.48:1
Closest name
Slate Blue
ΔE2000 3.9
Where it sits
Hue240° of 360°
Saturation68%
Lightness61%
Temperature
Warm ← → Cool83% 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#5757df
RGBrgb(87, 87, 223)
HSLhsl(240, 68%, 61%)
CMYKcmyk(61%, 61%, 0%, 13%)
LABlab(44.5 39.9 -69.5)
LCHlch(44.5 80.2 299.9)
OKLCHoklch(0.538 0.202 277.2)
Decimal5724127
Display P3color(display-p3 0.341 0.341 0.875)

Copy-ready code

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

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

Accessibility — WCAG contrast

Aa
#5757df on white: 5.48:1
AA ✓ pass · AA-large · AAA
Aa
#5757df on black: 3.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006FE3
deuteranopia · #0063DC
tritanopia · #007993

Color scale — 50 to 950

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

#F3F3FB
#E8E8F8
#CACAF2
#A1A1ED
#7272E4
#5757df
#2727CE
#2121AB
#1A1A89
#171763
#0E0E3E
Base = 500Lightest = 50 · #F3F3FBDarkest = 950 · #0E0E3E
:root {
  --brand-50: #F3F3FB;
  --brand-100: #E8E8F8;
  --brand-200: #CACAF2;
  --brand-300: #A1A1ED;
  --brand-400: #7272E4;
  --brand-500: #5757df;
  --brand-600: #2727CE;
  --brand-700: #2121AB;
  --brand-800: #1A1A89;
  --brand-900: #171763;
  --brand-950: #0E0E3E;
  --brand: #5757df;
  --brand-ink: #ffffff;
}

Colors that work with #5757df

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F4F4FA
Tinted page background
Border#C0C0ED
Hairlines and dividers
Muted text#4B4B9B
Captions on the surface
Accent#AF8B1D
Second voice, not a rival
Dark variant#14146B
Hover, pressed, headers
Light variant#EAEAFB
Selected rows, tints
Dark surface#141424
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 #5757df

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#DFDF57
Analogous left#579BDF
Analogous right#9B57DF
Split-complement 1#DF9B57
Split-complement 2#9BDF57
Triadic 1#DF5757
Triadic 2#57DF57
Tetradic#DF579B

RGB percentages

Red34.1%
Green34.1%
Blue87.5%

CMYK percentages

Cyan61.0%
Magenta61.0%
Yellow0.0%
Key (black)12.5%

Color previews

#5757df text on a black background

contrast 3.83:1

Card sample

#5757df text on a white background

contrast 5.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5757df

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.

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

#5757df, answered

What color is #5757df?

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

What is the RGB value of #5757df?

rgb(87, 87, 223) — 87 red, 87 green and 223 blue out of 255, or 34.1% / 34.1% / 87.5% by channel.

Is #5757df a light or a dark color?

It is a dark color. Relative luminance is 0.1417 and perceived brightness is 44%, so white text on it reaches 5.48:1.

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

White. It scores 5.48:1 against #5757df, versus 3.83:1 for black — AA at any size.

What is the complementary color of #5757df?

#DFDF57 sits directly opposite on the wheel. Softer options are the split-complements #DF9B57 and #9BDF57, which give the same contrast with far less vibration.

What colors go well with #5757df?

For interface work: #F4F4FA as the surface, #C0C0ED for borders, #4B4B9B for secondary text, #AF8B1D as an accent and #14146B for hover and pressed states. For a palette, the analogous pair #579BDF and #9B57DF stays calm, while #DFDF57 is the loudest partner.

What is #5757df in CMYK for printing?

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

Is #5757df warm or cool?

Cool — it scores 83 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #8957DF; nudged cooler, #557CE1.

Work with #5757df in the Color Lab