#5B5AE4#5B5AE4

#5B5AE4 is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 54.9% C 0.204 H 277.7°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5B5AE4
RGBrgb(91, 90, 228)
HSLhsl(240, 72%, 62%)
HSVhsv(240, 61%, 89%)
CMYKcmyk(60.1%, 60.5%, 0%, 10.6%)
CIE-LABlab(45.82, 40.39, -70.16)
CIE-LCHlch(45.82, 80.95, 299.93°)
OKLaboklab(54.94% 0.0271 -0.2018)
OKLCHoklch(54.94% 0.204 277.7)
XYZxyz(21.9696, 15.1362, 75.1476)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5AE4 #E3E45A
analogous
#5A9EE4 #5B5AE4 #A05AE4
triadic
#5B5AE4 #E45B5A #5AE45B
tetradic
#5B5AE4 #E45A9E #E3E45A #5AE4A0
square
#5B5AE4 #E45A9E #E3E45A #5AE4A0
split-complementary
#5B5AE4 #E4A05A #9EE45A
monochromatic
#1D1CA8 #2725DB #5B5AE4 #8F8FED #C4C3F5

Accessibility & contrast

On white

5.21
#5B5AE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5B5AE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5AE4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5AE4#FFFFFF#000000##FFFFFF
##5B5AE41.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E8
Deuteranopia (green-blind)
#0067E1
Tritanopia (blue-blind)
#007C96
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b5ae4;
/* rgb */ color: rgb(91, 90, 228);
/* oklch */ color: oklch(54.9% 0.204 277.7);
Tailwind
colors: {
  custom: {
    50: '#9689ed',
    500: '#5b5ae4',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ae4;
$custom-light: #9689ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ae4",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 228
  },
  "hsl": {
    "h": 240.435,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.54941,
    "c": 0.20363,
    "h": 277.7
  },
  "luminance": 0.15138
}

Semantic roles & 50–950 ramp

primary
#5B5AE4
secondary
#E6E6B4
accent
#D412D3
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5B5AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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