#5B5DE5#5B5DE5

#5B5DE5 is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.5% C 0.201 H 277.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5B5DE5
RGBrgb(91, 93, 229)
HSLhsl(239, 73%, 63%)
HSVhsv(239, 60%, 90%)
CMYKcmyk(60.3%, 59.4%, 0%, 10.2%)
CIE-LABlab(46.59, 38.91, -69.47)
CIE-LCHlch(46.59, 79.63, 299.25°)
OKLaboklab(55.53% 0.0245 -0.1998)
OKLCHoklch(55.53% 0.201 277)
XYZxyz(22.3670, 15.7083, 75.9669)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DE5 #E5E35B
analogous
#5BA2E5 #5B5DE5 #9E5BE5
triadic
#5B5DE5 #E55B5D #5DE55B
tetradic
#5B5DE5 #E55BA2 #E5E35B #5BE59E
square
#5B5DE5 #E55BA2 #E5E35B #5BE59E
split-complementary
#5B5DE5 #E59E5B #A2E55B
monochromatic
#1B1DAB #2629DD #5B5DE5 #9091ED #C5C5F6

Accessibility & contrast

On white

5.07
#5B5DE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5B5DE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DE5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DE5#FFFFFF#000000##FFFFFF
##5B5DE51.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E9
Deuteranopia (green-blind)
#0069E2
Tritanopia (blue-blind)
#007E98
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5de5;
/* rgb */ color: rgb(91, 93, 229);
/* oklch */ color: oklch(55.5% 0.201 277.0);
Tailwind
colors: {
  custom: {
    50: '#968bee',
    500: '#5b5de5',
    950: '#000000',
  },
}
SCSS
$custom: #5b5de5;
$custom-light: #968bee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5de5",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 229
  },
  "hsl": {
    "h": 239.13,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.55531,
    "c": 0.20127,
    "h": 277
  },
  "luminance": 0.1571
}

Semantic roles & 50–950 ramp

primary
#5B5DE5
secondary
#E7E6B5
accent
#D211D5
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5B5DE5

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

Preview Lab → · Contrast checker → · Palette generator →

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