#5B59DC#5B59DC

#5B59DC is a mid, vivid blue. Relative luminance 0.145; OKLCH L 54.1% C 0.195 H 278.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5B59DC
RGBrgb(91, 89, 220)
HSLhsl(241, 65%, 61%)
HSVhsv(241, 60%, 86%)
CMYKcmyk(58.6%, 59.5%, 0%, 13.7%)
CIE-LABlab(44.99, 38.42, -66.97)
CIE-LCHlch(44.99, 77.21, 299.85°)
OKLaboklab(54.14% 0.0283 -0.1924)
OKLCHoklch(54.14% 0.195 278.4)
XYZxyz(20.8009, 14.5347, 69.4056)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B59DC #DADC59
analogous
#5998DC #5B59DC #9C59DC
triadic
#5B59DC #DC5B59 #59DC5B
tetradic
#5B59DC #DC5998 #DADC59 #59DC9C
square
#5B59DC #DC5998 #DADC59 #59DC9C
split-complementary
#5B59DC #DC9C59 #98DC59
monochromatic
#22209A #2E2BCD #5B59DC #8D8CE7 #BFBEF1

Accessibility & contrast

On white

5.37
#5B59DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5B59DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B59DC
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B59DC#FFFFFF#000000##FFFFFF
##5B59DC1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#0065D9
Tritanopia (blue-blind)
#007992
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b59dc;
/* rgb */ color: rgb(91, 89, 220);
/* oklch */ color: oklch(54.1% 0.195 278.4);
Tailwind
colors: {
  custom: {
    50: '#9588e8',
    500: '#5b59dc',
    950: '#000000',
  },
}
SCSS
$custom: #5b59dc;
$custom-light: #9588e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b59dc",
  "rgb": {
    "r": 91,
    "g": 89,
    "b": 220
  },
  "hsl": {
    "h": 240.916,
    "s": 65.174,
    "l": 60.588
  },
  "oklch": {
    "l": 0.54142,
    "c": 0.19452,
    "h": 278.4
  },
  "luminance": 0.14536
}

Semantic roles & 50–950 ramp

primary
#5B59DC
secondary
#E1E1AF
accent
#CD18CA
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B59DC

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

Preview Lab → · Contrast checker → · Palette generator →

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