#5B4FD9#5B4FD9

#5B4FD9 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.2% C 0.203 H 280.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5B4FD9
RGBrgb(91, 79, 217)
HSLhsl(245, 64%, 58%)
HSVhsv(245, 64%, 85%)
CMYKcmyk(58.1%, 63.6%, 0%, 14.9%)
CIE-LABlab(42.50, 43.41, -69.32)
CIE-LCHlch(42.50, 81.79, 302.06°)
OKLaboklab(52.25% 0.0375 -0.1994)
OKLCHoklch(52.25% 0.203 280.6)
XYZxyz(19.6308, 12.8245, 67.0731)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FD9 #CDD94F
analogous
#4F88D9 #5B4FD9 #A04FD9
triadic
#5B4FD9 #D95B4F #4FD95B
tetradic
#5B4FD9 #D94F88 #CDD94F #4FD9A0
square
#5B4FD9 #D94F88 #CDD94F #4FD9A0
split-complementary
#5B4FD9 #D9A04F #88D94F
monochromatic
#291F8F #372AC1 #5B4FD9 #8A81E4 #B9B4EF

Accessibility & contrast

On white

5.89
#5B4FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5B4FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FD9
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FD9#FFFFFF#000000##FFFFFF
##5B4FD91.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DD
Deuteranopia (green-blind)
#005FD6
Tritanopia (blue-blind)
#04728D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b4fd9;
/* rgb */ color: rgb(91, 79, 217);
/* oklch */ color: oklch(52.2% 0.203 280.6);
Tailwind
colors: {
  custom: {
    50: '#9581e6',
    500: '#5b4fd9',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fd9;
$custom-light: #9581e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fd9",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 217
  },
  "hsl": {
    "h": 245.217,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.52245,
    "c": 0.20288,
    "h": 280.6
  },
  "luminance": 0.12826
}

Semantic roles & 50–950 ramp

primary
#5B4FD9
secondary
#D9DDA6
accent
#E740D9
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5B4FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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