#5B56BE#5B56BE

#5B56BE is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.4% C 0.158 H 281.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#5B56BE
RGBrgb(91, 86, 190)
HSLhsl(243, 44%, 54%)
HSVhsv(243, 55%, 75%)
CMYKcmyk(52.1%, 54.7%, 0%, 25.5%)
CIE-LABlab(42.15, 30.70, -54.29)
CIE-LCHlch(42.15, 62.37, 299.49°)
OKLaboklab(51.37% 0.0314 -0.1552)
OKLCHoklch(51.37% 0.158 281.4)
XYZxyz(16.9336, 12.5965, 50.2443)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56BE #B9BE56
analogous
#5685BE #5B56BE #8F56BE
triadic
#5B56BE #BE5B56 #56BE5B
tetradic
#5B56BE #BE5685 #B9BE56 #56BE8F
square
#5B56BE #BE5685 #B9BE56 #56BE8F
split-complementary
#5B56BE #BE8F56 #85BE56
monochromatic
#2E2B6F #403C9B #5B56BE #8682CF #B1AEE0

Accessibility & contrast

On white

5.97
#5B56BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5B56BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56BE
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56BE#FFFFFF#000000##FFFFFF
##5B56BE1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1767C2
Deuteranopia (green-blind)
#0460BC
Tritanopia (blue-blind)
#326D81
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b56be;
/* rgb */ color: rgb(91, 86, 190);
/* oklch */ color: oklch(51.4% 0.158 281.4);
Tailwind
colors: {
  custom: {
    50: '#9185d2',
    500: '#5b56be',
    950: '#000000',
  },
}
SCSS
$custom: #5b56be;
$custom-light: #9185d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56be",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 190
  },
  "hsl": {
    "h": 242.885,
    "s": 44.444,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51365,
    "c": 0.15833,
    "h": 281.4
  },
  "luminance": 0.12597
}

Semantic roles & 50–950 ramp

primary
#5B56BE
secondary
#CCCEA2
accent
#D454CE
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5B56BE

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

Preview Lab → · Contrast checker → · Palette generator →

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