#5B5DEB#5B5DEB

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

Color values

HEX#5B5DEB
RGBrgb(91, 93, 235)
HSLhsl(239, 78%, 64%)
HSVhsv(239, 61%, 92%)
CMYKcmyk(61.3%, 60.4%, 0%, 7.8%)
CIE-LABlab(47.04, 40.85, -72.12)
CIE-LCHlch(47.04, 82.89, 299.52°)
OKLaboklab(56% 0.0242 -0.2076)
OKLCHoklch(56% 0.209 276.7)
XYZxyz(23.2193, 16.0492, 80.4554)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DEB #EBE95B
analogous
#5BA5EB #5B5DEB #A15BEB
triadic
#5B5DEB #EB5B5D #5DEB5B
tetradic
#5B5DEB #EB5BA5 #EBE95B #5BEBA1
square
#5B5DEB #EB5BA5 #EBE95B #5BEBA1
split-complementary
#5B5DEB #EBA15B #A5EB5B
monochromatic
#1618B5 #2427E4 #5B5DEB #9293F2 #C8C9F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B5DEB#FFFFFF#000000##FFFFFF
##5B5DEB1.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)
#0076F0
Deuteranopia (green-blind)
#0069E8
Tritanopia (blue-blind)
#00809B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5deb;
/* rgb */ color: rgb(91, 93, 235);
/* oklch */ color: oklch(56.0% 0.209 276.7);
Tailwind
colors: {
  custom: {
    50: '#978bf2',
    500: '#5b5deb',
    950: '#000000',
  },
}
SCSS
$custom: #5b5deb;
$custom-light: #978bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5deb",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 239.167,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.56003,
    "c": 0.20899,
    "h": 276.7
  },
  "luminance": 0.16051
}

Semantic roles & 50–950 ramp

primary
#5B5DEB
secondary
#EAE9B8
accent
#D80BDB
background
#FAF8FE
surface
#F3F0FD
border
#CDCBD5
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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