Skip to content

#5f577f

a dark, soft blue · cool · closest name: Dark Slate Blue

RGB
95, 87, 127
HSL
252°, 19%, 42%
CMYK
25, 32, 0, 50
Luminance
0.1078

At a glance

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

Hex
#5f577f
Hue
252°
blue
Saturation
19%
soft
Lightness
42%
dark
Brightness
50%
HSV value
Perceived
37%
weighted brightness
Luminance
0.1078
WCAG relative
Temperature
Cool
64/100 cool
Color family
Blue
Tone
Soft
Best ink
White
6.65:1
Closest name
Dark Slate Blue
ΔE2000 11.4
Where it sits
Hue252° of 360°
Saturation19%
Lightness42%
Temperature
Warm ← → Cool64% 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#5f577f
RGBrgb(95, 87, 127)
HSLhsl(252, 19%, 42%)
CMYKcmyk(25%, 32%, 0%, 50%)
LABlab(39.2 12.6 -21.3)
LCHlch(39.2 24.7 300.5)
OKLCHoklch(0.481 0.064 293.0)
Decimal6248319
Display P3color(display-p3 0.373 0.341 0.498)

Copy-ready code

/* CSS */
color: #5f577f;
background-color: #5f577f;
/* Tailwind (arbitrary) */
class="text-[#5f577f] bg-[#5f577f]"
/* SCSS */
$brand: #5f577f;
/* SwiftUI */
Color(red: 0.373, green: 0.341, blue: 0.498)
/* Android */
Color.parseColor("#5f577f")
/* Flutter */
Color(0xFF5F577F)
/* Python / OpenCV (BGR) */
(127, 87, 95)

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

Accessibility — WCAG contrast

Aa
#5f577f on white: 6.65:1
AA ✓ pass · AA-large · AAA
Aa
#5f577f on black: 3.16:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4D5D81
deuteranopia · #4E5C7E
tritanopia · #585E65

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #5f577f is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F7F6F8
#EEEDF2
#DBD8E3
#C1BCD1
#A19BBB
#827AA4
#6D6491
#5f577f
#484261
#373348
#22202D
Base = 700Lightest = 50 · #F7F6F8Darkest = 950 · #22202D
:root {
  --brand-50: #F7F6F8;
  --brand-100: #EEEDF2;
  --brand-200: #DBD8E3;
  --brand-300: #C1BCD1;
  --brand-400: #A19BBB;
  --brand-500: #827AA4;
  --brand-600: #6D6491;
  --brand-700: #5f577f;
  --brand-800: #484261;
  --brand-900: #373348;
  --brand-950: #22202D;
  --brand: #5f577f;
  --brand-ink: #ffffff;
}

Colors that work with #5f577f

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#F6F6F9
Tinted page background
Border#D2CFDE
Hairlines and dividers
Muted text#665D88
Captions on the surface
Accent#838153
Second voice, not a rival
Dark variant#39344C
Hover, pressed, headers
Light variant#F1F0F5
Selected rows, tints
Dark surface#191721
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 #5f577f

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Black text placed on it
  • 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#777F57
Analogous left#57637F
Analogous right#73577F
Split-complement 1#7F7357
Split-complement 2#637F57
Triadic 1#7F5F57
Triadic 2#577F5F
Tetradic#7F5763

RGB percentages

Red37.3%
Green34.1%
Blue49.8%

CMYK percentages

Cyan25.2%
Magenta31.5%
Yellow0.0%
Key (black)50.2%

Color previews

#5f577f text on a black background

contrast 3.16:1

Card sample

#5f577f text on a white background

contrast 6.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(95, 87, 127, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 87, 127, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f577f;
background: linear-gradient(135deg, #5f577f, #7A577F);

Monochromatic scale

Palettes built from #5f577f

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.

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

#5f577f, answered

What color is #5f577f?

#5f577f is a dark soft blue, closest to Dark Slate Blue (ΔE2000 11.4). It sits at 252° on the hue wheel with 19% saturation and 42% lightness, which reads as cool.

What is the RGB value of #5f577f?

rgb(95, 87, 127) — 95 red, 87 green and 127 blue out of 255, or 37.3% / 34.1% / 49.8% by channel.

Is #5f577f a light or a dark color?

It is a dark color. Relative luminance is 0.1078 and perceived brightness is 37%, so white text on it reaches 6.65:1.

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

White. It scores 6.65:1 against #5f577f, versus 3.16:1 for black — AA at any size.

What is the complementary color of #5f577f?

#777F57 sits directly opposite on the wheel. Softer options are the split-complements #7F7357 and #637F57, which give the same contrast with far less vibration.

What colors go well with #5f577f?

For interface work: #F6F6F9 as the surface, #D2CFDE for borders, #665D88 for secondary text, #838153 as an accent and #39344C for hover and pressed states. For a palette, the analogous pair #57637F and #73577F stays calm, while #777F57 is the loudest partner.

What is #5f577f in CMYK for printing?

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

Is #5f577f warm or cool?

Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #6E577F; nudged cooler, #555C81.

Work with #5f577f in the Color Lab