#5B56CD#5B56CD

#5B56CD is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.5% C 0.179 H 280.2°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5B56CD
RGBrgb(91, 86, 205)
HSLhsl(243, 54%, 57%)
HSVhsv(243, 58%, 80%)
CMYKcmyk(55.6%, 58%, 0%, 19.6%)
CIE-LABlab(43.19, 35.45, -61.30)
CIE-LCHlch(43.19, 70.81, 300.04°)
OKLaboklab(52.47% 0.0315 -0.1758)
OKLCHoklch(52.47% 0.179 280.2)
XYZxyz(18.6582, 13.2863, 59.3271)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56CD #C8CD56
analogous
#568DCD #5B56CD #9756CD
triadic
#5B56CD #CD5B56 #56CD5B
tetradic
#5B56CD #CD568D #C8CD56 #56CD97
square
#5B56CD #CD568D #C8CD56 #56CD97
split-complementary
#5B56CD #CD9756 #8DCD56
monochromatic
#2A2682 #3A34B1 #5B56CD #8985DB #B7B4E9

Accessibility & contrast

On white

5.74
#5B56CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5B56CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56CD
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56CD#FFFFFF#000000##FFFFFF
##5B56CD1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD1
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#217289
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b56cd;
/* rgb */ color: rgb(91, 86, 205);
/* oklch */ color: oklch(52.5% 0.179 280.2);
Tailwind
colors: {
  custom: {
    50: '#9386dd',
    500: '#5b56cd',
    950: '#000000',
  },
}
SCSS
$custom: #5b56cd;
$custom-light: #9386dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56cd",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 242.521,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5247,
    "c": 0.1786,
    "h": 280.2
  },
  "luminance": 0.13288
}

Semantic roles & 50–950 ramp

primary
#5B56CD
secondary
#D6D8A7
accent
#DE4AD7
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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