#5B59D8#5B59D8

#5B59D8 is a mid, vivid blue. Relative luminance 0.143; OKLCH L 53.8% C 0.189 H 278.6°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5B59D8
RGBrgb(91, 89, 216)
HSLhsl(241, 62%, 60%)
HSVhsv(241, 59%, 85%)
CMYKcmyk(57.9%, 58.8%, 0%, 15.3%)
CIE-LABlab(44.70, 37.14, -65.17)
CIE-LCHlch(44.70, 75.01, 299.68°)
OKLaboklab(53.83% 0.0284 -0.1871)
OKLCHoklch(53.83% 0.189 278.6)
XYZxyz(20.2775, 14.3253, 66.6490)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B59D8 #D6D859
analogous
#5996D8 #5B59D8 #9B59D8
triadic
#5B59D8 #D85B59 #59D85B
tetradic
#5B59D8 #D85996 #D6D859 #59D89B
square
#5B59D8 #D85996 #D6D859 #59D89B
split-complementary
#5B59D8 #D89B59 #96D859
monochromatic
#252394 #312EC5 #5B59D8 #8C8BE4 #BDBCEF

Accessibility & contrast

On white

5.43
#5B59D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#5B59D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B59D8
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B59D8#FFFFFF#000000##FFFFFF
##5B59D81.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#0065D5
Tritanopia (blue-blind)
#037790
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b59d8;
/* rgb */ color: rgb(91, 89, 216);
/* oklch */ color: oklch(53.8% 0.189 278.6);
Tailwind
colors: {
  custom: {
    50: '#9588e5',
    500: '#5b59d8',
    950: '#000000',
  },
}
SCSS
$custom: #5b59d8;
$custom-light: #9588e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b59d8",
  "rgb": {
    "r": 91,
    "g": 89,
    "b": 216
  },
  "hsl": {
    "h": 240.945,
    "s": 61.951,
    "l": 59.804
  },
  "oklch": {
    "l": 0.53833,
    "c": 0.1893,
    "h": 278.6
  },
  "luminance": 0.14327
}

Semantic roles & 50–950 ramp

primary
#5B59D8
secondary
#DEDFAE
accent
#E543E2
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B59D8

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

Preview Lab → · Contrast checker → · Palette generator →

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