#5B5AE1#5B5AE1

#5B5AE1 is a mid, vivid blue. Relative luminance 0.150; OKLCH L 54.7% C 0.200 H 277.8°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5B5AE1
RGBrgb(91, 90, 225)
HSLhsl(240, 69%, 62%)
HSVhsv(240, 60%, 88%)
CMYKcmyk(59.6%, 60%, 0%, 11.8%)
CIE-LABlab(45.59, 39.43, -68.83)
CIE-LCHlch(45.59, 79.32, 299.81°)
OKLaboklab(54.7% 0.0272 -0.1979)
OKLCHoklch(54.7% 0.2 277.8)
XYZxyz(21.5568, 14.9711, 72.9733)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5AE1 #E0E15A
analogous
#5A9DE1 #5B5AE1 #9E5AE1
triadic
#5B5AE1 #E15B5A #5AE15B
tetradic
#5B5AE1 #E15A9D #E0E15A #5AE19E
square
#5B5AE1 #E15A9D #E0E15A #5AE19E
split-complementary
#5B5AE1 #E19E5A #9DE15A
monochromatic
#1F1EA3 #2827D7 #5B5AE1 #8E8EEA #C2C2F4

Accessibility & contrast

On white

5.26
#5B5AE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5B5AE1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5AE1
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5AE1#FFFFFF#000000##FFFFFF
##5B5AE11.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E5
Deuteranopia (green-blind)
#0066DE
Tritanopia (blue-blind)
#007B95
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b5ae1;
/* rgb */ color: rgb(91, 90, 225);
/* oklch */ color: oklch(54.7% 0.200 277.8);
Tailwind
colors: {
  custom: {
    50: '#9689eb',
    500: '#5b5ae1',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ae1;
$custom-light: #9689eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ae1",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 225
  },
  "hsl": {
    "h": 240.444,
    "s": 69.231,
    "l": 61.765
  },
  "oklch": {
    "l": 0.54704,
    "c": 0.19977,
    "h": 277.8
  },
  "luminance": 0.14973
}

Semantic roles & 50–950 ramp

primary
#5B5AE1
secondary
#E4E4B2
accent
#D114D0
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5B5AE1

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

Preview Lab → · Contrast checker → · Palette generator →

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