Skip to content

#5f30df

a balanced, vivid violet · cool · closest name: Blue Violet

RGB
95, 48, 223
HSL
256°, 73%, 53%
CMYK
57, 79, 0, 13
Luminance
0.0987

At a glance

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

Hex
#5f30df
Hue
256°
violet
Saturation
73%
vivid
Lightness
53%
balanced
Brightness
87%
HSV value
Perceived
39%
weighted brightness
Luminance
0.0987
WCAG relative
Temperature
Cool
74/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
7.06:1
Closest name
Blue Violet
ΔE2000 6.3
Where it sits
Hue256° of 360°
Saturation73%
Lightness53%
Temperature
Warm ← → Cool74% 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#5f30df
RGBrgb(95, 48, 223)
HSLhsl(256, 73%, 53%)
CMYKcmyk(57%, 79%, 0%, 13%)
LABlab(37.6 61.7 -80.8)
LCHlch(37.6 101.6 307.4)
OKLCHoklch(0.490 0.241 285.6)
Decimal6238431
Display P3color(display-p3 0.373 0.188 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#5f30df on white: 7.06:1
AA ✓ pass · AA-large · AAA
Aa
#5f30df on black: 2.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005DE4
deuteranopia · #0053DC
tritanopia · #196488

Color scale — 50 to 950

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

#F5F3FC
#ECE7F8
#D4C8F3
#B49EF0
#8E6DE8
#5f30df
#5121D4
#431BB1
#36168D
#2A1466
#1A0C40
Base = 500Lightest = 50 · #F5F3FCDarkest = 950 · #1A0C40
:root {
  --brand-50: #F5F3FC;
  --brand-100: #ECE7F8;
  --brand-200: #D4C8F3;
  --brand-300: #B49EF0;
  --brand-400: #8E6DE8;
  --brand-500: #5f30df;
  --brand-600: #5121D4;
  --brand-700: #431BB1;
  --brand-800: #36168D;
  --brand-900: #2A1466;
  --brand-950: #1A0C40;
  --brand: #5f30df;
  --brand-ink: #ffffff;
}

Colors that work with #5f30df

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#F6F4FA
Tinted page background
Border#CCC0ED
Hairlines and dividers
Muted text#604B9B
Captions on the surface
Accent#B2B517
Second voice, not a rival
Dark variant#2A116E
Hover, pressed, headers
Light variant#EEE9FC
Selected rows, tints
Dark surface#181424
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 #5f30df

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
  • Text on black or near-black surfaces
  • 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#B0DF30
Analogous left#3058DF
Analogous right#B630DF
Split-complement 1#DFB630
Split-complement 2#58DF30
Triadic 1#DF5F30
Triadic 2#30DF5F
Tetradic#DF3058

RGB percentages

Red37.3%
Green18.8%
Blue87.5%

CMYK percentages

Cyan57.4%
Magenta78.5%
Yellow0.0%
Key (black)12.5%

Color previews

#5f30df text on a black background

contrast 2.97:1

Card sample

#5f30df text on a white background

contrast 7.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #5f30df

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.

#5f30df in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#5f30df, answered

What color is #5f30df?

#5f30df is a balanced vivid violet, closest to Blue Violet (ΔE2000 6.3). It sits at 256° on the hue wheel with 73% saturation and 53% lightness, which reads as cool.

What is the RGB value of #5f30df?

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

Is #5f30df a light or a dark color?

It is a dark color. Relative luminance is 0.0987 and perceived brightness is 39%, so white text on it reaches 7.06:1.

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

White. It scores 7.06:1 against #5f30df, versus 2.97:1 for black — AAA at any size.

What is the complementary color of #5f30df?

#B0DF30 sits directly opposite on the wheel. Softer options are the split-complements #DFB630 and #58DF30, which give the same contrast with far less vibration.

What colors go well with #5f30df?

For interface work: #F6F4FA as the surface, #CCC0ED for borders, #604B9B for secondary text, #B2B517 as an accent and #2A116E for hover and pressed states. For a palette, the analogous pair #3058DF and #B630DF stays calm, while #B0DF30 is the loudest partner.

What is #5f30df in CMYK for printing?

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

Is #5f30df warm or cool?

Cool — it scores 74 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #9F30DF; nudged cooler, #2D3FE1.

Work with #5f30df in the Color Lab