#5B5CEE#5B5CEE

#5B5CEE is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.1% C 0.214 H 276.7°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5B5CEE
RGBrgb(91, 92, 238)
HSLhsl(240, 81%, 65%)
HSVhsv(240, 62%, 93%)
CMYKcmyk(61.8%, 61.3%, 0%, 6.7%)
CIE-LABlab(47.04, 42.40, -73.81)
CIE-LCHlch(47.04, 85.12, 299.88°)
OKLaboklab(56.08% 0.0249 -0.2125)
OKLCHoklch(56.08% 0.214 276.7)
XYZxyz(23.5691, 16.0496, 82.7282)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CEE #EEED5B
analogous
#5BA6EE #5B5CEE #A45BEE
triadic
#5B5CEE #EE5B5C #5CEE5B
tetradic
#5B5CEE #EE5BA6 #EEED5B #5BEEA4
square
#5B5CEE #EE5BA6 #EEED5B #5BEEA4
split-complementary
#5B5CEE #EEA45B #A6EE5B
monochromatic
#1315BB #2425E8 #5B5CEE #9293F4 #CACAF9

Accessibility & contrast

On white

4.99
#5B5CEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5B5CEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CEE
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CEE#FFFFFF#000000##FFFFFF
##5B5CEE1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F3
Deuteranopia (green-blind)
#0069EB
Tritanopia (blue-blind)
#00809C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5cee;
/* rgb */ color: rgb(91, 92, 238);
/* oklch */ color: oklch(56.1% 0.214 276.7);
Tailwind
colors: {
  custom: {
    50: '#988af5',
    500: '#5b5cee',
    950: '#000000',
  },
}
SCSS
$custom: #5b5cee;
$custom-light: #988af5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5cee",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 238
  },
  "hsl": {
    "h": 239.592,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.56075,
    "c": 0.21399,
    "h": 276.7
  },
  "luminance": 0.16051
}

Semantic roles & 50–950 ramp

primary
#5B5CEE
secondary
#ECEBB9
accent
#DC08DE
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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