#5B5BE5#5B5BE5

#5B5BE5 is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.2% C 0.204 H 277.4°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5B5BE5
RGBrgb(91, 91, 229)
HSLhsl(240, 73%, 63%)
HSVhsv(240, 60%, 90%)
CMYKcmyk(60.3%, 60.3%, 0%, 10.2%)
CIE-LABlab(46.13, 40.11, -70.23)
CIE-LCHlch(46.13, 80.87, 299.73°)
OKLaboklab(55.19% 0.0262 -0.202)
OKLCHoklch(55.19% 0.204 277.4)
XYZxyz(22.1938, 15.3618, 75.9091)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BE5 #E5E55B
analogous
#5BA0E5 #5B5BE5 #A05BE5
triadic
#5B5BE5 #E55B5B #5BE55B
tetradic
#5B5BE5 #E55BA0 #E5E55B #5BE5A0
square
#5B5BE5 #E55BA0 #E5E55B #5BE5A0
split-complementary
#5B5BE5 #E5A05B #A0E55B
monochromatic
#1B1BAB #2626DD #5B5BE5 #9090ED #C5C5F6

Accessibility & contrast

On white

5.16
#5B5BE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#5B5BE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BE5
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BE5#FFFFFF#000000##FFFFFF
##5B5BE51.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EA
Deuteranopia (green-blind)
#0067E2
Tritanopia (blue-blind)
#007D97
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b5be5;
/* rgb */ color: rgb(91, 91, 229);
/* oklch */ color: oklch(55.2% 0.204 277.4);
Tailwind
colors: {
  custom: {
    50: '#9689ee',
    500: '#5b5be5',
    950: '#000000',
  },
}
SCSS
$custom: #5b5be5;
$custom-light: #9689ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5be5",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 240,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.55189,
    "c": 0.2037,
    "h": 277.4
  },
  "luminance": 0.15363
}

Semantic roles & 50–950 ramp

primary
#5B5BE5
secondary
#E7E7B5
accent
#D511D5
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0B16
muted
#7E7C84

Preview Lab

Preview with #5B5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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