Skip to content

#5f5bc9

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

RGB
95, 91, 201
HSL
242°, 51%, 57%
CMYK
53, 55, 0, 21
Luminance
0.1413

At a glance

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

Hex
#5f5bc9
Hue
242°
blue
Saturation
51%
vivid
Lightness
57%
balanced
Brightness
79%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1413
WCAG relative
Temperature
Cool
82/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
5.49:1
Closest name
Slate Blue
ΔE2000 2.2
Where it sits
Hue242° of 360°
Saturation51%
Lightness57%
Temperature
Warm ← → Cool82% 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#5f5bc9
RGBrgb(95, 91, 201)
HSLhsl(242, 51%, 57%)
CMYKcmyk(53%, 55%, 0%, 21%)
LABlab(44.4 31.9 -57.0)
LCHlch(44.4 65.3 299.3)
OKLCHoklch(0.534 0.166 280.8)
Decimal6249417
Display P3color(display-p3 0.373 0.357 0.788)

Copy-ready code

/* CSS */
color: #5f5bc9;
background-color: #5f5bc9;
/* Tailwind (arbitrary) */
class="text-[#5f5bc9] bg-[#5f5bc9]"
/* SCSS */
$brand: #5f5bc9;
/* SwiftUI */
Color(red: 0.373, green: 0.357, blue: 0.788)
/* Android */
Color.parseColor("#5f5bc9")
/* Flutter */
Color(0xFF5F5BC9)
/* Python / OpenCV (BGR) */
(201, 91, 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 #5f5bc9 · 5.49:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.49: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: #5f5bc9 as text scores 5.49:1 on white and 3.83:1 on black.

Accessibility — WCAG contrast

Aa
#5f5bc9 on white: 5.49:1
AA ✓ pass · AA-large · AAA
Aa
#5f5bc9 on black: 3.83:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #166DCD
deuteranopia · #0065C7
tritanopia · #317489

Color scale — 50 to 950

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

#F5F4FA
#EAEAF6
#D0CFED
#ADABE3
#8380D5
#5f5bc9
#413DB8
#36329A
#2B287B
#23215A
#161438
Base = 500Lightest = 50 · #F5F4FADarkest = 950 · #161438
:root {
  --brand-50: #F5F4FA;
  --brand-100: #EAEAF6;
  --brand-200: #D0CFED;
  --brand-300: #ADABE3;
  --brand-400: #8380D5;
  --brand-500: #5f5bc9;
  --brand-600: #413DB8;
  --brand-700: #36329A;
  --brand-800: #2B287B;
  --brand-900: #23215A;
  --brand-950: #161438;
  --brand: #5f5bc9;
  --brand-ink: #ffffff;
}

Colors that work with #5f5bc9

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#F5F4FA
Tinted page background
Border#C3C2EB
Hairlines and dividers
Muted text#4E4B9B
Captions on the surface
Accent#9D862F
Second voice, not a rival
Dark variant#222060
Hover, pressed, headers
Light variant#ECECF9
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 #5f5bc9

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#C5C95B
Analogous left#5B8EC9
Analogous right#965BC9
Split-complement 1#C9965B
Split-complement 2#8EC95B
Triadic 1#C95F5B
Triadic 2#5BC95F
Tetradic#C95B8E

RGB percentages

Red37.3%
Green35.7%
Blue78.8%

CMYK percentages

Cyan52.7%
Magenta54.7%
Yellow0.0%
Key (black)21.2%

Color previews

#5f5bc9 text on a black background

contrast 3.83:1

Card sample

#5f5bc9 text on a white background

contrast 5.49:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(95, 91, 201, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(95, 91, 201, 0.45);
Border & gradient
Gradient panel
border: 3px solid #5f5bc9;
background: linear-gradient(135deg, #5f5bc9, #A85BC9);

Monochromatic scale

Palettes built from #5f5bc9

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.

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

#5f5bc9, answered

What color is #5f5bc9?

#5f5bc9 is a balanced vivid blue, closest to Slate Blue (ΔE2000 2.2). It sits at 242° on the hue wheel with 51% saturation and 57% lightness, which reads as cool.

What is the RGB value of #5f5bc9?

rgb(95, 91, 201) — 95 red, 91 green and 201 blue out of 255, or 37.3% / 35.7% / 78.8% by channel.

Is #5f5bc9 a light or a dark color?

It is a dark color. Relative luminance is 0.1413 and perceived brightness is 43%, so white text on it reaches 5.49:1.

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

White. It scores 5.49:1 against #5f5bc9, versus 3.83:1 for black — AA at any size.

What is the complementary color of #5f5bc9?

#C5C95B sits directly opposite on the wheel. Softer options are the split-complements #C9965B and #8EC95B, which give the same contrast with far less vibration.

What colors go well with #5f5bc9?

For interface work: #F5F4FA as the surface, #C3C2EB for borders, #4E4B9B for secondary text, #9D862F as an accent and #222060 for hover and pressed states. For a palette, the analogous pair #5B8EC9 and #965BC9 stays calm, while #C5C95B is the loudest partner.

What is #5f5bc9 in CMYK for printing?

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

Is #5f5bc9 warm or cool?

Cool — it scores 82 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #875BC9; nudged cooler, #597ACB.

Work with #5f5bc9 in the Color Lab