Skip to content

#5f4fba

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

RGB
95, 79, 186
HSL
249°, 44%, 52%
CMYK
49, 58, 0, 27
Luminance
0.1157

At a glance

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

Hex
#5f4fba
Hue
249°
blue
Saturation
44%
soft
Lightness
52%
balanced
Brightness
73%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1157
WCAG relative
Temperature
Cool
78/100 cool
Color family
Blue
Tone
Soft
Best ink
White
6.34:1
Closest name
Slate Blue
ΔE2000 4.5
Where it sits
Hue249° of 360°
Saturation44%
Lightness52%
Temperature
Warm ← → Cool78% 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#5f4fba
RGBrgb(95, 79, 186)
HSLhsl(249, 44%, 52%)
CMYKcmyk(49%, 58%, 0%, 27%)
LABlab(40.5 34.6 -54.6)
LCHlch(40.5 64.6 302.4)
OKLCHoklch(0.502 0.162 285.8)
Decimal6246330
Display P3color(display-p3 0.373 0.310 0.729)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f4fba on white: 6.34:1
AA ✓ pass · AA-large · AAA
Aa
#5f4fba on black: 3.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062BE
deuteranopia · #005CB8
tritanopia · #3F677D

Color scale — 50 to 950

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

#F6F5FA
#ECEAF5
#D5D1EB
#B6AEDF
#9186D0
#5f4fba
#5545B0
#473993
#392E75
#2C2556
#1B1736
Base = 500Lightest = 50 · #F6F5FADarkest = 950 · #1B1736
:root {
  --brand-50: #F6F5FA;
  --brand-100: #ECEAF5;
  --brand-200: #D5D1EB;
  --brand-300: #B6AEDF;
  --brand-400: #9186D0;
  --brand-500: #5f4fba;
  --brand-600: #5545B0;
  --brand-700: #473993;
  --brand-800: #392E75;
  --brand-900: #2C2556;
  --brand-950: #1B1736;
  --brand: #5f4fba;
  --brand-ink: #ffffff;
}

Colors that work with #5f4fba

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#CAC4E8
Hairlines and dividers
Muted text#574B9B
Captions on the surface
Accent#978D35
Second voice, not a rival
Dark variant#2C245C
Hover, pressed, headers
Light variant#EEEDF8
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 #5f4fba

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

Works well for
  • Body text and links on white
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#AABA4F
Analogous left#4F75BA
Analogous right#954FBA
Split-complement 1#BA954F
Split-complement 2#75BA4F
Triadic 1#BA5F4F
Triadic 2#4FBA5F
Tetradic#BA4F75

RGB percentages

Red37.3%
Green31.0%
Blue72.9%

CMYK percentages

Cyan48.9%
Magenta57.5%
Yellow0.0%
Key (black)27.1%

Color previews

#5f4fba text on a black background

contrast 3.31:1

Card sample

#5f4fba text on a white background

contrast 6.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f4fba

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.

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

#5f4fba, answered

What color is #5f4fba?

#5f4fba is a balanced soft blue, closest to Slate Blue (ΔE2000 4.5). It sits at 249° on the hue wheel with 44% saturation and 52% lightness, which reads as cool.

What is the RGB value of #5f4fba?

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

Is #5f4fba a light or a dark color?

It is a dark color. Relative luminance is 0.1157 and perceived brightness is 40%, so white text on it reaches 6.34:1.

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

White. It scores 6.34:1 against #5f4fba, versus 3.31:1 for black — AA at any size.

What is the complementary color of #5f4fba?

#AABA4F sits directly opposite on the wheel. Softer options are the split-complements #BA954F and #75BA4F, which give the same contrast with far less vibration.

What colors go well with #5f4fba?

For interface work: #F5F4FA as the surface, #CAC4E8 for borders, #574B9B for secondary text, #978D35 as an accent and #2C245C for hover and pressed states. For a palette, the analogous pair #4F75BA and #954FBA stays calm, while #AABA4F is the loudest partner.

What is #5f4fba in CMYK for printing?

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

Is #5f4fba warm or cool?

Cool — it scores 78 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #864FBA; nudged cooler, #4D65BD.

Work with #5f4fba in the Color Lab