Skip to content

#5f49fd

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

RGB
95, 73, 253
HSL
247°, 98%, 64%
CMYK
63, 71, 0, 1
Luminance
0.1429

At a glance

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

Hex
#5f49fd
Hue
247°
blue
Saturation
98%
electric
Lightness
64%
balanced
Brightness
99%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1429
WCAG relative
Temperature
Cool
79/100 cool
Color family
Blue
Tone
Electric
Best ink
White
5.44:1
Closest name
Slate Blue
ΔE2000 7.1
Where it sits
Hue247° of 360°
Saturation98%
Lightness64%
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#5f49fd
RGBrgb(95, 73, 253)
HSLhsl(247, 98%, 64%)
CMYKcmyk(63%, 71%, 0%, 1%)
LABlab(44.6 58.2 -86.1)
LCHlch(44.6 104.0 304.1)
OKLCHoklch(0.548 0.252 279.6)
Decimal6244861
Display P3color(display-p3 0.373 0.286 0.992)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f49fd on white: 5.44:1
AA ✓ pass · AA-large · AAA
Aa
#5f49fd on black: 3.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0070FF
deuteranopia · #0062FA
tritanopia · #007B9F

Color scale — 50 to 950

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

#F3F1FD
#E6E3FC
#C8C1FB
#9D90FE
#5f49fd
#3C21FD
#2003F2
#1B02CA
#1502A1
#140674
#0C0449
Base = 400Lightest = 50 · #F3F1FDDarkest = 950 · #0C0449
:root {
  --brand-50: #F3F1FD;
  --brand-100: #E6E3FC;
  --brand-200: #C8C1FB;
  --brand-300: #9D90FE;
  --brand-400: #5f49fd;
  --brand-500: #3C21FD;
  --brand-600: #2003F2;
  --brand-700: #1B02CA;
  --brand-800: #1502A1;
  --brand-900: #140674;
  --brand-950: #0C0449;
  --brand: #5f49fd;
  --brand-ink: #ffffff;
}

Colors that work with #5f49fd

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#CCB100
Second voice, not a rival
Dark variant#11017E
Hover, pressed, headers
Light variant#E9E6FF
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 #5f49fd

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#E7FD49
Analogous left#498DFD
Analogous right#B949FD
Split-complement 1#FDB949
Split-complement 2#8DFD49
Triadic 1#FD5F49
Triadic 2#49FD5F
Tetradic#FD498D

RGB percentages

Red37.3%
Green28.6%
Blue99.2%

CMYK percentages

Cyan62.5%
Magenta71.1%
Yellow0.0%
Key (black)0.8%

Color previews

#5f49fd text on a black background

contrast 3.86:1

Card sample

#5f49fd text on a white background

contrast 5.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f49fd

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.

#5f49fd 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#5f49fd, answered

What color is #5f49fd?

#5f49fd is a balanced electric blue, closest to Slate Blue (ΔE2000 7.1). It sits at 247° on the hue wheel with 98% saturation and 64% lightness, which reads as cool.

What is the RGB value of #5f49fd?

rgb(95, 73, 253) — 95 red, 73 green and 253 blue out of 255, or 37.3% / 28.6% / 99.2% by channel.

Is #5f49fd a light or a dark color?

It is a dark color. Relative luminance is 0.1429 and perceived brightness is 45%, so white text on it reaches 5.44:1.

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

White. It scores 5.44:1 against #5f49fd, versus 3.86:1 for black — AA at any size.

What is the complementary color of #5f49fd?

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

What colors go well with #5f49fd?

For interface work: #F5F4FA as the surface, #C5C0ED for borders, #544B9B for secondary text, #CCB100 as an accent and #11017E for hover and pressed states. For a palette, the analogous pair #498DFD and #B949FD stays calm, while #E7FD49 is the loudest partner.

What is #5f49fd in CMYK for printing?

cmyk(63%, 71%, 0%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #5f49fd 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 #A149FD; nudged cooler, #476BFF.

Work with #5f49fd in the Color Lab