#5B5EEB#5B5EEB

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

Color values

HEX#5B5EEB
RGBrgb(91, 94, 235)
HSLhsl(239, 78%, 64%)
HSVhsv(239, 61%, 92%)
CMYKcmyk(61.3%, 60%, 0%, 7.8%)
CIE-LABlab(47.27, 40.25, -71.75)
CIE-LCHlch(47.27, 82.27, 299.29°)
OKLaboklab(56.17% 0.0234 -0.2065)
OKLCHoklch(56.17% 0.208 276.5)
XYZxyz(23.3076, 16.2259, 80.4848)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5EEB #EBE85B
analogous
#5BA6EB #5B5EEB #A05BEB
triadic
#5B5EEB #EB5B5E #5EEB5B
tetradic
#5B5EEB #EB5BA6 #EBE85B #5BEBA0
square
#5B5EEB #EB5BA6 #EBE85B #5BEBA0
split-complementary
#5B5EEB #EBA05B #A6EB5B
monochromatic
#1619B5 #2428E4 #5B5EEB #9294F2 #C8C9F8

Accessibility & contrast

On white

4.95
#5B5EEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#5B5EEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5EEB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5EEB#FFFFFF#000000##FFFFFF
##5B5EEB1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F0
Deuteranopia (green-blind)
#006AE8
Tritanopia (blue-blind)
#00819C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5eeb;
/* rgb */ color: rgb(91, 94, 235);
/* oklch */ color: oklch(56.2% 0.208 276.5);
Tailwind
colors: {
  custom: {
    50: '#978cf2',
    500: '#5b5eeb',
    950: '#000000',
  },
}
SCSS
$custom: #5b5eeb;
$custom-light: #978cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5eeb",
  "rgb": {
    "r": 91,
    "g": 94,
    "b": 235
  },
  "hsl": {
    "h": 238.75,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.56173,
    "c": 0.20779,
    "h": 276.5
  },
  "luminance": 0.16228
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B5EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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