#5B5AEA#5B5AEA

#5B5AEA is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.4% C 0.211 H 277.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5B5AEA
RGBrgb(91, 90, 234)
HSLhsl(240, 77%, 64%)
HSVhsv(240, 62%, 92%)
CMYKcmyk(61.1%, 61.5%, 0%, 8.2%)
CIE-LABlab(46.28, 42.31, -72.80)
CIE-LCHlch(46.28, 84.20, 300.16°)
OKLaboklab(55.42% 0.0268 -0.2096)
OKLCHoklch(55.42% 0.211 277.3)
XYZxyz(22.8170, 15.4752, 79.6106)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5AEA #E9EA5A
analogous
#5AA1EA #5B5AEA #A35AEA
triadic
#5B5AEA #EA5B5A #5AEA5B
tetradic
#5B5AEA #EA5AA1 #E9EA5A #5AEAA3
square
#5B5AEA #EA5AA1 #E9EA5A #5AEAA3
split-complementary
#5B5AEA #EAA35A #A1EA5A
monochromatic
#1817B3 #2524E3 #5B5AEA #9190F1 #C7C7F8

Accessibility & contrast

On white

5.13
#5B5AEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5B5AEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5AEA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5AEA#FFFFFF#000000##FFFFFF
##5B5AEA1.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EF
Deuteranopia (green-blind)
#0068E7
Tritanopia (blue-blind)
#007E9A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5aea;
/* rgb */ color: rgb(91, 90, 234);
/* oklch */ color: oklch(55.4% 0.211 277.3);
Tailwind
colors: {
  custom: {
    50: '#9789f2',
    500: '#5b5aea',
    950: '#000000',
  },
}
SCSS
$custom: #5b5aea;
$custom-light: #9789f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5aea",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 240.417,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.55421,
    "c": 0.21129,
    "h": 277.3
  },
  "luminance": 0.15477
}

Semantic roles & 50–950 ramp

primary
#5B5AEA
secondary
#E9E9B6
accent
#DA0CD8
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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