Skip to content

#5f4fdb

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

RGB
95, 79, 219
HSL
247°, 66%, 58%
CMYK
57, 64, 0, 14
Luminance
0.1314

At a glance

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

Hex
#5f4fdb
Hue
247°
blue
Saturation
66%
vivid
Lightness
58%
balanced
Brightness
86%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1314
WCAG relative
Temperature
Cool
80/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
5.79:1
Closest name
Slate Blue
ΔE2000 3.9
Where it sits
Hue247° of 360°
Saturation66%
Lightness58%
Temperature
Warm ← → Cool80% 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#5f4fdb
RGBrgb(95, 79, 219)
HSLhsl(247, 66%, 58%)
CMYKcmyk(57%, 64%, 0%, 14%)
LABlab(43.0 44.7 -69.7)
LCHlch(43.0 82.8 302.7)
OKLCHoklch(0.527 0.205 281.9)
Decimal6246363
Display P3color(display-p3 0.373 0.310 0.859)

Copy-ready code

/* CSS */
color: #5f4fdb;
background-color: #5f4fdb;
/* Tailwind (arbitrary) */
class="text-[#5f4fdb] bg-[#5f4fdb]"
/* SCSS */
$brand: #5f4fdb;
/* SwiftUI */
Color(red: 0.373, green: 0.310, blue: 0.859)
/* Android */
Color.parseColor("#5f4fdb")
/* Flutter */
Color(0xFF5F4FDB)
/* Python / OpenCV (BGR) */
(219, 79, 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 #5f4fdb · 5.79:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.79:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.63:1
AA fail · AA large pass · AAA fail
Reading the other direction: #5f4fdb as text scores 5.79:1 on white and 3.63:1 on black.

Accessibility — WCAG contrast

Aa
#5f4fdb on white: 5.79:1
AA ✓ pass · AA-large · AAA
Aa
#5f4fdb on black: 3.63:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006ADF
deuteranopia · #0060D8
tritanopia · #1B728E

Color scale — 50 to 950

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

#F4F3FB
#EAE8F8
#CFCBF1
#AAA2EC
#8073E2
#5f4fdb
#3C2ACB
#3223A9
#281C87
#211862
#140F3D
Base = 500Lightest = 50 · #F4F3FBDarkest = 950 · #140F3D
:root {
  --brand-50: #F4F3FB;
  --brand-100: #EAE8F8;
  --brand-200: #CFCBF1;
  --brand-300: #AAA2EC;
  --brand-400: #8073E2;
  --brand-500: #5f4fdb;
  --brand-600: #3C2ACB;
  --brand-700: #3223A9;
  --brand-800: #281C87;
  --brand-900: #211862;
  --brand-950: #140F3D;
  --brand: #5f4fdb;
  --brand-ink: #ffffff;
}

Colors that work with #5f4fdb

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#C5C0ED
Hairlines and dividers
Muted text#544B9B
Captions on the surface
Accent#AD9A1F
Second voice, not a rival
Dark variant#1F166A
Hover, pressed, headers
Light variant#ECEAFB
Selected rows, tints
Dark surface#161424
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 #5f4fdb

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#CBDB4F
Analogous left#4F85DB
Analogous right#A54FDB
Split-complement 1#DBA54F
Split-complement 2#85DB4F
Triadic 1#DB5F4F
Triadic 2#4FDB5F
Tetradic#DB4F85

RGB percentages

Red37.3%
Green31.0%
Blue85.9%

CMYK percentages

Cyan56.6%
Magenta63.9%
Yellow0.0%
Key (black)14.1%

Color previews

#5f4fdb text on a black background

contrast 3.63:1

Card sample

#5f4fdb text on a white background

contrast 5.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f4fdb

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.

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

#5f4fdb, answered

What color is #5f4fdb?

#5f4fdb is a balanced vivid blue, closest to Slate Blue (ΔE2000 3.9). It sits at 247° on the hue wheel with 66% saturation and 58% lightness, which reads as cool.

What is the RGB value of #5f4fdb?

rgb(95, 79, 219) — 95 red, 79 green and 219 blue out of 255, or 37.3% / 31% / 85.9% by channel.

Is #5f4fdb a light or a dark color?

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

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

White. It scores 5.79:1 against #5f4fdb, versus 3.63:1 for black — AA at any size.

What is the complementary color of #5f4fdb?

#CBDB4F sits directly opposite on the wheel. Softer options are the split-complements #DBA54F and #85DB4F, which give the same contrast with far less vibration.

What colors go well with #5f4fdb?

For interface work: #F5F4FA as the surface, #C5C0ED for borders, #544B9B for secondary text, #AD9A1F as an accent and #1F166A for hover and pressed states. For a palette, the analogous pair #4F85DB and #A54FDB stays calm, while #CBDB4F is the loudest partner.

What is #5f4fdb in CMYK for printing?

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

Is #5f4fdb warm or cool?

Cool — it scores 80 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #924FDB; nudged cooler, #4D6FDD.

Work with #5f4fdb in the Color Lab