#5B4FD2#5B4FD2

#5B4FD2 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.7% C 0.194 H 281.3°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5B4FD2
RGBrgb(91, 79, 210)
HSLhsl(245, 59%, 57%)
HSVhsv(245, 62%, 82%)
CMYKcmyk(56.7%, 62.4%, 0%, 17.6%)
CIE-LABlab(41.95, 41.23, -66.19)
CIE-LCHlch(41.95, 77.98, 301.91°)
OKLaboklab(51.68% 0.0381 -0.1902)
OKLCHoklch(51.68% 0.194 281.3)
XYZxyz(18.7396, 12.4680, 62.3794)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FD2 #C6D24F
analogous
#4F85D2 #5B4FD2 #9D4FD2
triadic
#5B4FD2 #D25B4F #4FD25B
tetradic
#5B4FD2 #D24F85 #C6D24F #4FD29D
square
#5B4FD2 #D24F85 #C6D24F #4FD29D
split-complementary
#5B4FD2 #D29D4F #85D24F
monochromatic
#2B2285 #3B2EB5 #5B4FD2 #8880DE #B6B0EB

Accessibility & contrast

On white

6.01
#5B4FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5B4FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FD2
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FD2#FFFFFF#000000##FFFFFF
##5B4FD21.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#005ECF
Tritanopia (blue-blind)
#1A6F89
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b4fd2;
/* rgb */ color: rgb(91, 79, 210);
/* oklch */ color: oklch(51.7% 0.194 281.3);
Tailwind
colors: {
  custom: {
    50: '#9481e1',
    500: '#5b4fd2',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fd2;
$custom-light: #9481e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fd2",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 210
  },
  "hsl": {
    "h": 245.496,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51675,
    "c": 0.19399,
    "h": 281.3
  },
  "luminance": 0.12469
}

Semantic roles & 50–950 ramp

primary
#5B4FD2
secondary
#D4D9A4
accent
#E245D4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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