#5B56CB#5B56CB

#5B56CB is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.3% C 0.176 H 280.3°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#5B56CB
RGBrgb(91, 86, 203)
HSLhsl(243, 53%, 57%)
HSVhsv(243, 58%, 80%)
CMYKcmyk(55.2%, 57.6%, 0%, 20.4%)
CIE-LABlab(43.05, 34.82, -60.38)
CIE-LCHlch(43.05, 69.70, 299.97°)
OKLaboklab(52.32% 0.0315 -0.1731)
OKLCHoklch(52.32% 0.176 280.3)
XYZxyz(18.4183, 13.1903, 58.0638)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56CB #C6CB56
analogous
#568CCB #5B56CB #9656CB
triadic
#5B56CB #CB5B56 #56CB5B
tetradic
#5B56CB #CB568C #C6CB56 #56CB96
square
#5B56CB #CB568C #C6CB56 #56CB96
split-complementary
#5B56CB #CB9656 #8CCB56
monochromatic
#2B277F #3B36AE #5B56CB #8885D9 #B6B4E8

Accessibility & contrast

On white

5.77
#5B56CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5B56CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56CB
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56CB#FFFFFF#000000##FFFFFF
##5B56CB1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACF
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#247188
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b56cb;
/* rgb */ color: rgb(91, 86, 203);
/* oklch */ color: oklch(52.3% 0.176 280.3);
Tailwind
colors: {
  custom: {
    50: '#9386dc',
    500: '#5b56cb',
    950: '#000000',
  },
}
SCSS
$custom: #5b56cb;
$custom-light: #9386dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56cb",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 203
  },
  "hsl": {
    "h": 242.564,
    "s": 52.941,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52319,
    "c": 0.17593,
    "h": 280.3
  },
  "luminance": 0.13192
}

Semantic roles & 50–950 ramp

primary
#5B56CB
secondary
#D4D6A6
accent
#DC4BD6
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B56CB

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

Preview Lab → · Contrast checker → · Palette generator →

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