Skip to content

#5f4bdf

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

RGB
95, 75, 223
HSL
248°, 70%, 58%
CMYK
57, 66, 0, 13
Luminance
0.1279

At a glance

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

Hex
#5f4bdf
Hue
248°
blue
Saturation
70%
vivid
Lightness
58%
balanced
Brightness
87%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1279
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Vivid
Best ink
White
5.90:1
Closest name
Slate Blue
ΔE2000 4.9
Where it sits
Hue248° of 360°
Saturation70%
Lightness58%
Temperature
Warm ← → Cool79% 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#5f4bdf
RGBrgb(95, 75, 223)
HSLhsl(248, 70%, 58%)
CMYKcmyk(57%, 66%, 0%, 13%)
LABlab(42.5 48.2 -72.8)
LCHlch(42.5 87.3 303.5)
OKLCHoklch(0.524 0.214 282.2)
Decimal6245343
Display P3color(display-p3 0.373 0.294 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f4bdf on white: 5.90:1
AA ✓ pass · AA-large · AAA
Aa
#5f4bdf on black: 3.56:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0069E4
deuteranopia · #005FDC
tritanopia · #13718F

Color scale — 50 to 950

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

#F4F3FC
#EAE7F8
#CFC9F2
#AAA0EE
#8070E6
#5f4bdf
#3C25D0
#321FAD
#28198B
#211665
#140E3F
Base = 500Lightest = 50 · #F4F3FCDarkest = 950 · #140E3F
:root {
  --brand-50: #F4F3FC;
  --brand-100: #EAE7F8;
  --brand-200: #CFC9F2;
  --brand-300: #AAA0EE;
  --brand-400: #8070E6;
  --brand-500: #5f4bdf;
  --brand-600: #3C25D0;
  --brand-700: #321FAD;
  --brand-800: #28198B;
  --brand-900: #211665;
  --brand-950: #140E3F;
  --brand: #5f4bdf;
  --brand-ink: #ffffff;
}

Colors that work with #5f4bdf

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#C6C0ED
Hairlines and dividers
Muted text#554B9B
Captions on the surface
Accent#B1A01B
Second voice, not a rival
Dark variant#1F136C
Hover, pressed, headers
Light variant#ECE9FB
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 #5f4bdf

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#CBDF4B
Analogous left#4B81DF
Analogous right#A94BDF
Split-complement 1#DFA94B
Split-complement 2#81DF4B
Triadic 1#DF5F4B
Triadic 2#4BDF5F
Tetradic#DF4B81

RGB percentages

Red37.3%
Green29.4%
Blue87.5%

CMYK percentages

Cyan57.4%
Magenta66.4%
Yellow0.0%
Key (black)12.5%

Color previews

#5f4bdf text on a black background

contrast 3.56:1

Card sample

#5f4bdf text on a white background

contrast 5.90:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f4bdf

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.

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

#5f4bdf, answered

What color is #5f4bdf?

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

What is the RGB value of #5f4bdf?

rgb(95, 75, 223) — 95 red, 75 green and 223 blue out of 255, or 37.3% / 29.4% / 87.5% by channel.

Is #5f4bdf a light or a dark color?

It is a dark color. Relative luminance is 0.1279 and perceived brightness is 42%, so white text on it reaches 5.90:1.

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

White. It scores 5.90:1 against #5f4bdf, versus 3.56:1 for black — AA at any size.

What is the complementary color of #5f4bdf?

#CBDF4B sits directly opposite on the wheel. Softer options are the split-complements #DFA94B and #81DF4B, which give the same contrast with far less vibration.

What colors go well with #5f4bdf?

For interface work: #F5F4FA as the surface, #C6C0ED for borders, #554B9B for secondary text, #B1A01B as an accent and #1F136C for hover and pressed states. For a palette, the analogous pair #4B81DF and #A94BDF stays calm, while #CBDF4B is the loudest partner.

What is #5f4bdf in CMYK for printing?

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

Is #5f4bdf warm or cool?

Cool — it scores 79 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #954BDF; nudged cooler, #496BE1.

Work with #5f4bdf in the Color Lab