#5B5AEE#5B5AEE

#5B5AEE is a mid, highly saturated blue. Relative luminance 0.157; OKLCH L 55.7% C 0.216 H 277.1°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5B5AEE
RGBrgb(91, 90, 238)
HSLhsl(240, 81%, 64%)
HSVhsv(240, 62%, 93%)
CMYKcmyk(61.8%, 62.2%, 0%, 6.7%)
CIE-LABlab(46.59, 43.59, -74.55)
CIE-LCHlch(46.59, 86.35, 300.31°)
OKLaboklab(55.74% 0.0266 -0.2147)
OKLCHoklch(55.74% 0.216 277.1)
XYZxyz(23.3982, 15.7077, 82.6712)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5AEE #EDEE5A
analogous
#5AA3EE #5B5AEE #A55AEE
triadic
#5B5AEE #EE5B5A #5AEE5B
tetradic
#5B5AEE #EE5AA3 #EDEE5A #5AEEA5
square
#5B5AEE #EE5AA3 #EDEE5A #5AEEA5
split-complementary
#5B5AEE #EEA55A #A3EE5A
monochromatic
#1413BA #2423E8 #5B5AEE #9291F4 #C9C9F9

Accessibility & contrast

On white

5.07
#5B5AEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5B5AEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5AEE
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5AEE#FFFFFF#000000##FFFFFF
##5B5AEE1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F3
Deuteranopia (green-blind)
#0068EB
Tritanopia (blue-blind)
#007F9C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b5aee;
/* rgb */ color: rgb(91, 90, 238);
/* oklch */ color: oklch(55.7% 0.216 277.1);
Tailwind
colors: {
  custom: {
    50: '#9889f5',
    500: '#5b5aee',
    950: '#000000',
  },
}
SCSS
$custom: #5b5aee;
$custom-light: #9889f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5aee",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 240.405,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.55744,
    "c": 0.21635,
    "h": 277.1
  },
  "luminance": 0.1571
}

Semantic roles & 50–950 ramp

primary
#5B5AEE
secondary
#EBECB8
accent
#DE08DC
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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