#5B5CEB#5B5CEB

#5B5CEB is a mid, highly saturated blue. Relative luminance 0.159; OKLCH L 55.8% C 0.210 H 276.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5B5CEB
RGBrgb(91, 92, 235)
HSLhsl(240, 78%, 64%)
HSVhsv(240, 61%, 92%)
CMYKcmyk(61.3%, 60.9%, 0%, 7.8%)
CIE-LABlab(46.81, 41.44, -72.50)
CIE-LCHlch(46.81, 83.51, 299.75°)
OKLaboklab(55.84% 0.0251 -0.2087)
OKLCHoklch(55.84% 0.21 276.9)
XYZxyz(23.1321, 15.8748, 80.4263)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CEB #EBEA5B
analogous
#5BA4EB #5B5CEB #A25BEB
triadic
#5B5CEB #EB5B5C #5CEB5B
tetradic
#5B5CEB #EB5BA4 #EBEA5B #5BEBA2
square
#5B5CEB #EB5BA4 #EBEA5B #5BEBA2
split-complementary
#5B5CEB #EBA25B #A4EB5B
monochromatic
#1617B5 #2426E4 #5B5CEB #9292F2 #C8C8F8

Accessibility & contrast

On white

5.03
#5B5CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5B5CEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CEB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CEB#FFFFFF#000000##FFFFFF
##5B5CEB1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#0069E8
Tritanopia (blue-blind)
#007F9B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5ceb;
/* rgb */ color: rgb(91, 92, 235);
/* oklch */ color: oklch(55.8% 0.210 276.9);
Tailwind
colors: {
  custom: {
    50: '#978af2',
    500: '#5b5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ceb;
$custom-light: #978af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ceb",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 239.583,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.55835,
    "c": 0.21018,
    "h": 276.9
  },
  "luminance": 0.15877
}

Semantic roles & 50–950 ramp

primary
#5B5CEB
secondary
#EAEAB8
accent
#D90BDB
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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