#5B56BA#5B56BA

#5B56BA is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.1% C 0.153 H 281.8°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5B56BA
RGBrgb(91, 86, 186)
HSLhsl(243, 42%, 53%)
HSVhsv(243, 54%, 73%)
CMYKcmyk(51.1%, 53.8%, 0%, 27.1%)
CIE-LABlab(41.88, 29.44, -52.39)
CIE-LCHlch(41.88, 60.10, 299.34°)
OKLaboklab(51.08% 0.0312 -0.1496)
OKLCHoklch(51.08% 0.153 281.8)
XYZxyz(16.5024, 12.4240, 47.9734)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56BA #B5BA56
analogous
#5683BA #5B56BA #8D56BA
triadic
#5B56BA #BA5B56 #56BA5B
tetradic
#5B56BA #BA5683 #B5BA56 #56BA8D
square
#5B56BA #BA5683 #B5BA56 #56BA8D
split-complementary
#5B56BA #BA8D56 #83BA56
monochromatic
#2F2B6A #423D96 #5B56BA #8581CC #AFADDD

Accessibility & contrast

On white

6.03
#5B56BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5B56BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56BA
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56BA#FFFFFF#000000##FFFFFF
##5B56BA1.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E66BD
Deuteranopia (green-blind)
#135FB8
Tritanopia (blue-blind)
#366C80
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b56ba;
/* rgb */ color: rgb(91, 86, 186);
/* oklch */ color: oklch(51.1% 0.153 281.8);
Tailwind
colors: {
  custom: {
    50: '#9085cf',
    500: '#5b56ba',
    950: '#000000',
  },
}
SCSS
$custom: #5b56ba;
$custom-light: #9085cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56ba",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 186
  },
  "hsl": {
    "h": 243,
    "s": 42.017,
    "l": 53.333
  },
  "oklch": {
    "l": 0.51082,
    "c": 0.15281,
    "h": 281.8
  },
  "luminance": 0.12425
}

Semantic roles & 50–950 ramp

primary
#5B56BA
secondary
#C9CBA0
accent
#D256CC
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5B56BA

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

Preview Lab → · Contrast checker → · Palette generator →

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