#5B56EF#5B56EF

#5B56EF is a mid, highly saturated blue. Relative luminance 0.151; OKLCH L 55.2% C 0.222 H 277.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5B56EF
RGBrgb(91, 86, 239)
HSLhsl(242, 83%, 64%)
HSVhsv(242, 64%, 94%)
CMYKcmyk(61.9%, 64%, 0%, 6.3%)
CIE-LABlab(45.78, 46.24, -76.42)
CIE-LCHlch(45.78, 89.32, 301.18°)
OKLaboklab(55.18% 0.0297 -0.2202)
OKLCHoklch(55.18% 0.222 277.7)
XYZxyz(23.2171, 15.1099, 83.3376)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56EF #EAEF56
analogous
#569DEF #5B56EF #A756EF
triadic
#5B56EF #EF5B56 #56EF5B
tetradic
#5B56EF #EF569D #EAEF56 #56EFA7
square
#5B56EF #EF569D #EAEF56 #56EFA7
split-complementary
#5B56EF #EFA756 #9DEF56
monochromatic
#1712B9 #251EEA #5B56EF #918EF4 #C8C6FA

Accessibility & contrast

On white

5.22
#5B56EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5B56EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56EF
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56EF#FFFFFF#000000##FFFFFF
##5B56EF1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F4
Deuteranopia (green-blind)
#0066EC
Tritanopia (blue-blind)
#007D9B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b56ef;
/* rgb */ color: rgb(91, 86, 239);
/* oklch */ color: oklch(55.2% 0.222 277.7);
Tailwind
colors: {
  custom: {
    50: '#9986f5',
    500: '#5b56ef',
    950: '#000000',
  },
}
SCSS
$custom: #5b56ef;
$custom-light: #9986f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56ef",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 241.961,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55182,
    "c": 0.22222,
    "h": 277.7
  },
  "luminance": 0.15112
}

Semantic roles & 50–950 ramp

primary
#5B56EF
secondary
#EAEBB5
accent
#DF06D8
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B56EF

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

Preview Lab → · Contrast checker → · Palette generator →

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