#5B5BEE#5B5BEE

#5B5BEE is a mid, highly saturated blue. Relative luminance 0.159; OKLCH L 55.9% C 0.215 H 276.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5B5BEE
RGBrgb(91, 91, 238)
HSLhsl(240, 81%, 65%)
HSVhsv(240, 62%, 93%)
CMYKcmyk(61.8%, 61.8%, 0%, 6.7%)
CIE-LABlab(46.81, 43.00, -74.18)
CIE-LCHlch(46.81, 85.74, 300.10°)
OKLaboklab(55.91% 0.0258 -0.2136)
OKLCHoklch(55.91% 0.215 276.9)
XYZxyz(23.4831, 15.8775, 82.6995)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BEE #EEEE5B
analogous
#5BA5EE #5B5BEE #A55BEE
triadic
#5B5BEE #EE5B5B #5BEE5B
tetradic
#5B5BEE #EE5BA5 #EEEE5B #5BEEA5
square
#5B5BEE #EE5BA5 #EEEE5B #5BEEA5
split-complementary
#5B5BEE #EEA55B #A5EE5B
monochromatic
#1313BB #2424E8 #5B5BEE #9292F4 #CACAF9

Accessibility & contrast

On white

5.03
#5B5BEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5B5BEE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BEE
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BEE#FFFFFF#000000##FFFFFF
##5B5BEE1.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F3
Deuteranopia (green-blind)
#0069EB
Tritanopia (blue-blind)
#00809C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5bee;
/* rgb */ color: rgb(91, 91, 238);
/* oklch */ color: oklch(55.9% 0.215 276.9);
Tailwind
colors: {
  custom: {
    50: '#988af5',
    500: '#5b5bee',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bee;
$custom-light: #988af5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bee",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 240,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.55909,
    "c": 0.21517,
    "h": 276.9
  },
  "luminance": 0.15879
}

Semantic roles & 50–950 ramp

primary
#5B5BEE
secondary
#ECECB9
accent
#DE08DE
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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