#5B5CEA#5B5CEA

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

Color values

HEX#5B5CEA
RGBrgb(91, 92, 234)
HSLhsl(240, 77%, 64%)
HSVhsv(240, 61%, 92%)
CMYKcmyk(61.1%, 60.7%, 0%, 8.2%)
CIE-LABlab(46.73, 41.12, -72.06)
CIE-LCHlch(46.73, 82.97, 299.71°)
OKLaboklab(55.76% 0.0251 -0.2074)
OKLCHoklch(55.76% 0.209 276.9)
XYZxyz(22.9880, 15.8171, 79.6676)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CEA #EAE95B
analogous
#5BA3EA #5B5CEA #A15BEA
triadic
#5B5CEA #EA5B5C #5CEA5B
tetradic
#5B5CEA #EA5BA3 #EAE95B #5BEAA1
square
#5B5CEA #EA5BA3 #EAE95B #5BEAA1
split-complementary
#5B5CEA #EAA15B #A3EA5B
monochromatic
#1718B4 #2526E3 #5B5CEA #9192F1 #C8C8F8

Accessibility & contrast

On white

5.04
#5B5CEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#5B5CEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CEA
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CEA#FFFFFF#000000##FFFFFF
##5B5CEA1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#0069E7
Tritanopia (blue-blind)
#007F9A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5cea;
/* rgb */ color: rgb(91, 92, 234);
/* oklch */ color: oklch(55.8% 0.209 276.9);
Tailwind
colors: {
  custom: {
    50: '#978af2',
    500: '#5b5cea',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cea;
$custom-light: #978af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cea",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 239.58,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55755,
    "c": 0.20891,
    "h": 276.9
  },
  "luminance": 0.15819
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B5CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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