#5B5DEA#5B5DEA

#5B5DEA is a mid, highly saturated blue. Relative luminance 0.160; OKLCH L 55.9% C 0.208 H 276.7°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5B5DEA
RGBrgb(91, 93, 234)
HSLhsl(239, 77%, 64%)
HSVhsv(239, 61%, 92%)
CMYKcmyk(61.1%, 60.3%, 0%, 8.2%)
CIE-LABlab(46.96, 40.52, -71.68)
CIE-LCHlch(46.96, 82.35, 299.48°)
OKLaboklab(55.92% 0.0243 -0.2063)
OKLCHoklch(55.92% 0.208 276.7)
XYZxyz(23.0752, 15.9915, 79.6966)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DEA #EAE85B
analogous
#5BA4EA #5B5DEA #A05BEA
triadic
#5B5DEA #EA5B5D #5DEA5B
tetradic
#5B5DEA #EA5BA4 #EAE85B #5BEAA0
square
#5B5DEA #EA5BA4 #EAE85B #5BEAA0
split-complementary
#5B5DEA #EAA05B #A4EA5B
monochromatic
#1719B4 #2527E3 #5B5DEA #9193F1 #C8C8F8

Accessibility & contrast

On white

5.00
#5B5DEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5B5DEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DEA
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DEA#FFFFFF#000000##FFFFFF
##5B5DEA1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EF
Deuteranopia (green-blind)
#0069E7
Tritanopia (blue-blind)
#00809B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5dea;
/* rgb */ color: rgb(91, 93, 234);
/* oklch */ color: oklch(55.9% 0.208 276.7);
Tailwind
colors: {
  custom: {
    50: '#978bf2',
    500: '#5b5dea',
    950: '#000000',
  },
}
SCSS
$custom: #5b5dea;
$custom-light: #978bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5dea",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 234
  },
  "hsl": {
    "h": 239.161,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55924,
    "c": 0.2077,
    "h": 276.7
  },
  "luminance": 0.15993
}

Semantic roles & 50–950 ramp

primary
#5B5DEA
secondary
#EAE9B7
accent
#D70CDA
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5DEA

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

Preview Lab → · Contrast checker → · Palette generator →

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