#5B4FDB#5B4FDB

#5B4FDB is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.4% C 0.205 H 280.5°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5B4FDB
RGBrgb(91, 79, 219)
HSLhsl(245, 66%, 58%)
HSVhsv(245, 64%, 86%)
CMYKcmyk(58.4%, 63.9%, 0%, 14.1%)
CIE-LABlab(42.66, 44.03, -70.20)
CIE-LCHlch(42.66, 82.87, 302.10°)
OKLaboklab(52.41% 0.0373 -0.202)
OKLCHoklch(52.41% 0.205 280.5)
XYZxyz(19.8925, 12.9292, 68.4514)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FDB #CFDB4F
analogous
#4F89DB #5B4FDB #A14FDB
triadic
#5B4FDB #DB5B4F #4FDB5B
tetradic
#5B4FDB #DB4F89 #CFDB4F #4FDBA1
square
#5B4FDB #DB4F89 #CFDB4F #4FDBA1
split-complementary
#5B4FDB #DBA14F #89DB4F
monochromatic
#281E92 #3628C5 #5B4FDB #8A82E5 #BAB5F0

Accessibility & contrast

On white

5.86
#5B4FDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5B4FDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FDB
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FDB#FFFFFF#000000##FFFFFF
##5B4FDB1.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#005FD8
Tritanopia (blue-blind)
#00728E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b4fdb;
/* rgb */ color: rgb(91, 79, 219);
/* oklch */ color: oklch(52.4% 0.205 280.5);
Tailwind
colors: {
  custom: {
    50: '#9681e7',
    500: '#5b4fdb',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fdb;
$custom-light: #9681e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fdb",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 219
  },
  "hsl": {
    "h": 245.143,
    "s": 66.038,
    "l": 58.431
  },
  "oklch": {
    "l": 0.5241,
    "c": 0.20541,
    "h": 280.5
  },
  "luminance": 0.12931
}

Semantic roles & 50–950 ramp

primary
#5B4FDB
secondary
#DADFA7
accent
#E93FDA
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5B4FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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