#5F30BF#5F30BF

#5F30BF is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.0% C 0.206 H 291.0°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5F30BF
RGBrgb(95, 48, 191)
HSLhsl(260, 60%, 47%)
HSVhsv(260, 75%, 75%)
CMYKcmyk(50.3%, 74.9%, 0%, 25.1%)
CIE-LABlab(34.62, 53.09, -67.12)
CIE-LCHlch(34.62, 85.58, 308.34°)
OKLaboklab(46.02% 0.0739 -0.1927)
OKLCHoklch(46.02% 0.206 291)
XYZxyz(15.1776, 8.3078, 50.0840)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F30BF #90BF30
analogous
#3049BF #5F30BF #A730BF
triadic
#5F30BF #BF5F30 #30BF5F
tetradic
#5F30BF #BF3049 #90BF30 #30BFA7
square
#5F30BF #BF3049 #90BF30 #30BFA7
split-complementary
#5F30BF #BFA730 #49BF30
monochromatic
#2E175D #47248E #5F30BF #8157D5 #A588E1

Accessibility & contrast

On white

7.89
#5F30BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5F30BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F30BF
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F30BF#FFFFFF#000000##FFFFFF
##5F30BF1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#3E5775
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f30bf;
/* rgb */ color: rgb(95, 48, 191);
/* oklch */ color: oklch(46.0% 0.206 291.0);
Tailwind
colors: {
  custom: {
    50: '#966dd3',
    500: '#5f30bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f30bf;
$custom-light: #966dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f30bf",
  "rgb": {
    "r": 95,
    "g": 48,
    "b": 191
  },
  "hsl": {
    "h": 259.72,
    "s": 59.833,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46015,
    "c": 0.20644,
    "h": 291
  },
  "luminance": 0.08308
}

Semantic roles & 50–950 ramp

primary
#5F30BF
secondary
#B2CB80
accent
#E345AF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5F30BF

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5F30BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva