#5B5EEA#5B5EEA

#5B5EEA is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.1% C 0.206 H 276.5°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5B5EEA
RGBrgb(91, 94, 234)
HSLhsl(239, 77%, 64%)
HSVhsv(239, 61%, 92%)
CMYKcmyk(61.1%, 59.8%, 0%, 8.2%)
CIE-LABlab(47.19, 39.93, -71.31)
CIE-LCHlch(47.19, 81.72, 299.24°)
OKLaboklab(56.09% 0.0234 -0.2052)
OKLCHoklch(56.09% 0.207 276.5)
XYZxyz(23.1636, 16.1682, 79.7261)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5EEA #EAE75B
analogous
#5BA5EA #5B5EEA #9F5BEA
triadic
#5B5EEA #EA5B5E #5EEA5B
tetradic
#5B5EEA #EA5BA5 #EAE75B #5BEA9F
square
#5B5EEA #EA5BA5 #EAE75B #5BEA9F
split-complementary
#5B5EEA #EA9F5B #A5EA5B
monochromatic
#171AB4 #2529E3 #5B5EEA #9193F1 #C8C9F8

Accessibility & contrast

On white

4.96
#5B5EEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5B5EEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5EEA
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5EEA#FFFFFF#000000##FFFFFF
##5B5EEA1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EF
Deuteranopia (green-blind)
#006AE7
Tritanopia (blue-blind)
#00809B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5eea;
/* rgb */ color: rgb(91, 94, 234);
/* oklch */ color: oklch(56.1% 0.206 276.5);
Tailwind
colors: {
  custom: {
    50: '#978cf2',
    500: '#5b5eea',
    950: '#000000',
  },
}
SCSS
$custom: #5b5eea;
$custom-light: #978cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5eea",
  "rgb": {
    "r": 91,
    "g": 94,
    "b": 234
  },
  "hsl": {
    "h": 238.741,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.56094,
    "c": 0.2065,
    "h": 276.5
  },
  "luminance": 0.1617
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B5EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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