#5B5DE4#5B5DE4

#5B5DE4 is a mid, vivid blue. Relative luminance 0.157; OKLCH L 55.5% C 0.200 H 277.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5B5DE4
RGBrgb(91, 93, 228)
HSLhsl(239, 72%, 63%)
HSVhsv(239, 60%, 89%)
CMYKcmyk(60.1%, 59.2%, 0%, 10.6%)
CIE-LABlab(46.52, 38.59, -69.03)
CIE-LCHlch(46.52, 79.08, 299.21°)
OKLaboklab(55.45% 0.0245 -0.1985)
OKLCHoklch(55.45% 0.2 277)
XYZxyz(22.2278, 15.6526, 75.2337)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DE4 #E4E25B
analogous
#5BA2E4 #5B5DE4 #9D5BE4
triadic
#5B5DE4 #E45B5D #5DE45B
tetradic
#5B5DE4 #E45BA2 #E4E25B #5BE49D
square
#5B5DE4 #E45BA2 #E4E25B #5BE49D
split-complementary
#5B5DE4 #E49D5B #A2E45B
monochromatic
#1C1EA9 #2629DB #5B5DE4 #9091ED #C4C5F5

Accessibility & contrast

On white

5.08
#5B5DE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5B5DE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DE4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DE4#FFFFFF#000000##FFFFFF
##5B5DE41.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E8
Deuteranopia (green-blind)
#0068E1
Tritanopia (blue-blind)
#007E98
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5de4;
/* rgb */ color: rgb(91, 93, 228);
/* oklch */ color: oklch(55.5% 0.200 277.0);
Tailwind
colors: {
  custom: {
    50: '#968bed',
    500: '#5b5de4',
    950: '#000000',
  },
}
SCSS
$custom: #5b5de4;
$custom-light: #968bed;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5de4",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 228
  },
  "hsl": {
    "h": 239.124,
    "s": 71.728,
    "l": 62.549
  },
  "oklch": {
    "l": 0.55453,
    "c": 0.19998,
    "h": 277
  },
  "luminance": 0.15654
}

Semantic roles & 50–950 ramp

primary
#5B5DE4
secondary
#E6E6B4
accent
#D112D4
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5B5DE4

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

Preview Lab → · Contrast checker → · Palette generator →

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