#5B5CE1#5B5CE1

#5B5CE1 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 55.0% C 0.197 H 277.4°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5B5CE1
RGBrgb(91, 92, 225)
HSLhsl(240, 69%, 62%)
HSVhsv(240, 60%, 88%)
CMYKcmyk(59.6%, 59.1%, 0%, 11.8%)
CIE-LABlab(46.06, 38.22, -68.07)
CIE-LCHlch(46.06, 78.07, 299.32°)
OKLaboklab(55.05% 0.0254 -0.1957)
OKLCHoklch(55.05% 0.197 277.4)
XYZxyz(21.7278, 15.3131, 73.0303)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CE1 #E1E05B
analogous
#5B9FE1 #5B5CE1 #9D5BE1
triadic
#5B5CE1 #E15B5C #5CE15B
tetradic
#5B5CE1 #E15B9F #E1E05B #5BE19D
square
#5B5CE1 #E15B9F #E1E05B #5BE19D
split-complementary
#5B5CE1 #E19D5B #9FE15B
monochromatic
#1E1FA4 #2729D7 #5B5CE1 #8F8FEA #C2C3F4

Accessibility & contrast

On white

5.17
#5B5CE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5B5CE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CE1
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CE1#FFFFFF#000000##FFFFFF
##5B5CE11.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E5
Deuteranopia (green-blind)
#0067DE
Tritanopia (blue-blind)
#007C96
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b5ce1;
/* rgb */ color: rgb(91, 92, 225);
/* oklch */ color: oklch(55.0% 0.197 277.4);
Tailwind
colors: {
  custom: {
    50: '#968aeb',
    500: '#5b5ce1',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ce1;
$custom-light: #968aeb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ce1",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 225
  },
  "hsl": {
    "h": 239.552,
    "s": 69.072,
    "l": 61.961
  },
  "oklch": {
    "l": 0.55048,
    "c": 0.19732,
    "h": 277.4
  },
  "luminance": 0.15315
}

Semantic roles & 50–950 ramp

primary
#5B5CE1
secondary
#E5E4B3
accent
#D014D1
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5B5CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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