#5B56EB#5B56EB

#5B56EB is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 54.9% C 0.217 H 278.0°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5B56EB
RGBrgb(91, 86, 235)
HSLhsl(242, 79%, 63%)
HSVhsv(242, 63%, 92%)
CMYKcmyk(61.3%, 63.4%, 0%, 7.8%)
CIE-LABlab(45.46, 44.98, -74.69)
CIE-LCHlch(45.46, 87.19, 301.06°)
OKLaboklab(54.85% 0.0301 -0.2152)
OKLCHoklch(54.85% 0.217 278)
XYZxyz(22.6327, 14.8761, 80.2599)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56EB #E6EB56
analogous
#569CEB #5B56EB #A556EB
triadic
#5B56EB #EB5B56 #56EB5B
tetradic
#5B56EB #EB569C #E6EB56 #56EBA5
square
#5B56EB #EB569C #E6EB56 #56EBA5
split-complementary
#5B56EB #EBA556 #9CEB56
monochromatic
#1A15B2 #261FE5 #5B56EB #908DF1 #C5C3F8

Accessibility & contrast

On white

5.28
#5B56EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5B56EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56EB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56EB#FFFFFF#000000##FFFFFF
##5B56EB1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F0
Deuteranopia (green-blind)
#0065E8
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b56eb;
/* rgb */ color: rgb(91, 86, 235);
/* oklch */ color: oklch(54.9% 0.217 278.0);
Tailwind
colors: {
  custom: {
    50: '#9886f3',
    500: '#5b56eb',
    950: '#000000',
  },
}
SCSS
$custom: #5b56eb;
$custom-light: #9886f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56eb",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 242.013,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5485,
    "c": 0.21725,
    "h": 278
  },
  "luminance": 0.14878
}

Semantic roles & 50–950 ramp

primary
#5B56EB
secondary
#E7E9B4
accent
#DB0AD4
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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