#5B59D5#5B59D5

#5B59D5 is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.6% C 0.185 H 278.8°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5B59D5
RGBrgb(91, 89, 213)
HSLhsl(241, 60%, 59%)
HSVhsv(241, 58%, 84%)
CMYKcmyk(57.3%, 58.2%, 0%, 16.5%)
CIE-LABlab(44.48, 36.18, -63.81)
CIE-LCHlch(44.48, 73.35, 299.56°)
OKLaboklab(53.6% 0.0285 -0.1831)
OKLCHoklch(53.6% 0.185 278.8)
XYZxyz(19.8932, 14.1716, 64.6250)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B59D5 #D3D559
analogous
#5995D5 #5B59D5 #9959D5
triadic
#5B59D5 #D55B59 #59D55B
tetradic
#5B59D5 #D55995 #D3D559 #59D599
square
#5B59D5 #D55995 #D3D559 #59D599
split-complementary
#5B59D5 #D59959 #95D559
monochromatic
#26248F #3331C0 #5B59D5 #8B8AE1 #BCBBEE

Accessibility & contrast

On white

5.48
#5B59D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5B59D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B59D5
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B59D5#FFFFFF#000000##FFFFFF
##5B59D51.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED9
Deuteranopia (green-blind)
#0064D2
Tritanopia (blue-blind)
#0F778E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b59d5;
/* rgb */ color: rgb(91, 89, 213);
/* oklch */ color: oklch(53.6% 0.185 278.8);
Tailwind
colors: {
  custom: {
    50: '#9488e3',
    500: '#5b59d5',
    950: '#000000',
  },
}
SCSS
$custom: #5b59d5;
$custom-light: #9488e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b59d5",
  "rgb": {
    "r": 91,
    "g": 89,
    "b": 213
  },
  "hsl": {
    "h": 240.968,
    "s": 59.615,
    "l": 59.216
  },
  "oklch": {
    "l": 0.53603,
    "c": 0.18535,
    "h": 278.8
  },
  "luminance": 0.14173
}

Semantic roles & 50–950 ramp

primary
#5B59D5
secondary
#DCDDAD
accent
#E345E0
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B15
muted
#7E7C84

Preview Lab

Preview with #5B59D5

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

Preview Lab → · Contrast checker → · Palette generator →

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