#5B4FDA#5B4FDA

#5B4FDA is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.3% C 0.204 H 280.6°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#5B4FDA
RGBrgb(91, 79, 218)
HSLhsl(245, 65%, 58%)
HSVhsv(245, 64%, 85%)
CMYKcmyk(58.3%, 63.8%, 0%, 14.5%)
CIE-LABlab(42.58, 43.72, -69.76)
CIE-LCHlch(42.58, 82.33, 302.08°)
OKLaboklab(52.33% 0.0374 -0.2007)
OKLCHoklch(52.33% 0.204 280.6)
XYZxyz(19.7613, 12.8767, 67.7602)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FDA #CEDA4F
analogous
#4F88DA #5B4FDA #A04FDA
triadic
#5B4FDA #DA5B4F #4FDA5B
tetradic
#5B4FDA #DA4F88 #CEDA4F #4FDAA0
square
#5B4FDA #DA4F88 #CEDA4F #4FDAA0
split-complementary
#5B4FDA #DAA04F #88DA4F
monochromatic
#281E90 #3629C3 #5B4FDA #8A82E5 #B9B4EF

Accessibility & contrast

On white

5.87
#5B4FDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5B4FDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FDA
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FDA#FFFFFF#000000##FFFFFF
##5B4FDA1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#005FD7
Tritanopia (blue-blind)
#00728D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b4fda;
/* rgb */ color: rgb(91, 79, 218);
/* oklch */ color: oklch(52.3% 0.204 280.6);
Tailwind
colors: {
  custom: {
    50: '#9681e6',
    500: '#5b4fda',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fda;
$custom-light: #9681e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fda",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 218
  },
  "hsl": {
    "h": 245.18,
    "s": 65.258,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52327,
    "c": 0.20415,
    "h": 280.6
  },
  "luminance": 0.12878
}

Semantic roles & 50–950 ramp

primary
#5B4FDA
secondary
#D9DEA7
accent
#E840DA
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5B4FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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