#5B4FC0#5B4FC0

#5B4FC0 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.3% C 0.170 H 283.2°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#5B4FC0
RGBrgb(91, 79, 192)
HSLhsl(246, 47%, 53%)
HSVhsv(246, 59%, 75%)
CMYKcmyk(52.6%, 58.9%, 0%, 24.7%)
CIE-LABlab(40.61, 35.61, -57.95)
CIE-LCHlch(40.61, 68.02, 301.57°)
OKLaboklab(50.27% 0.0389 -0.166)
OKLCHoklch(50.27% 0.17 283.2)
XYZxyz(16.6219, 11.6210, 51.2262)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FC0 #B4C04F
analogous
#4F7BC0 #5B4FC0 #934FC0
triadic
#5B4FC0 #C05B4F #4FC05B
tetradic
#5B4FC0 #C04F7B #B4C04F #4FC093
square
#5B4FC0 #C04F7B #B4C04F #4FC093
split-complementary
#5B4FC0 #C0934F #7BC04F
monochromatic
#2F276D #42379A #5B4FC0 #857CD0 #AFA9E0

Accessibility & contrast

On white

6.32
#5B4FC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5B4FC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FC0
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FC0#FFFFFF#000000##FFFFFF
##5B4FC01.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C4
Deuteranopia (green-blind)
#005CBE
Tritanopia (blue-blind)
#316980
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b4fc0;
/* rgb */ color: rgb(91, 79, 192);
/* oklch */ color: oklch(50.3% 0.170 283.2);
Tailwind
colors: {
  custom: {
    50: '#9281d4',
    500: '#5b4fc0',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fc0;
$custom-light: #9281d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fc0",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 192
  },
  "hsl": {
    "h": 246.372,
    "s": 47.28,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50268,
    "c": 0.17049,
    "h": 283.2
  },
  "luminance": 0.11622
}

Semantic roles & 50–950 ramp

primary
#5B4FC0
secondary
#C9CE9D
accent
#D751C9
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5B4FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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