#5B56BF#5B56BF

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

Color values

HEX#5B56BF
RGBrgb(91, 86, 191)
HSLhsl(243, 45%, 54%)
HSVhsv(243, 55%, 75%)
CMYKcmyk(52.4%, 55%, 0%, 25.1%)
CIE-LABlab(42.22, 31.02, -54.77)
CIE-LCHlch(42.22, 62.94, 299.53°)
OKLaboklab(51.44% 0.0314 -0.1566)
OKLCHoklch(51.44% 0.16 281.3)
XYZxyz(17.0433, 12.6403, 50.8219)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56BF #BABF56
analogous
#5686BF #5B56BF #9056BF
triadic
#5B56BF #BF5B56 #56BF5B
tetradic
#5B56BF #BF5686 #BABF56 #56BF90
square
#5B56BF #BF5686 #BABF56 #56BF90
split-complementary
#5B56BF #BF9056 #86BF56
monochromatic
#2E2A70 #403B9D #5B56BF #8682D0 #B1AFE1

Accessibility & contrast

On white

5.95
#5B56BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5B56BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56BF
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56BF#FFFFFF#000000##FFFFFF
##5B56BF1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1467C3
Deuteranopia (green-blind)
#0060BD
Tritanopia (blue-blind)
#316E82
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b56bf;
/* rgb */ color: rgb(91, 86, 191);
/* oklch */ color: oklch(51.4% 0.160 281.3);
Tailwind
colors: {
  custom: {
    50: '#9186d3',
    500: '#5b56bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b56bf;
$custom-light: #9186d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56bf",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 242.857,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51437,
    "c": 0.1597,
    "h": 281.3
  },
  "luminance": 0.12641
}

Semantic roles & 50–950 ramp

primary
#5B56BF
secondary
#CDCFA2
accent
#D553CF
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5B56BF

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

Preview Lab → · Contrast checker → · Palette generator →

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