#5B56CC#5B56CC

#5B56CC is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.4% C 0.177 H 280.2°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5B56CC
RGBrgb(91, 86, 204)
HSLhsl(243, 54%, 57%)
HSVhsv(243, 58%, 80%)
CMYKcmyk(55.4%, 57.8%, 0%, 20%)
CIE-LABlab(43.12, 35.14, -60.84)
CIE-LCHlch(43.12, 70.26, 300.01°)
OKLaboklab(52.4% 0.0315 -0.1744)
OKLCHoklch(52.4% 0.177 280.2)
XYZxyz(18.5378, 13.2382, 58.6934)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56CC #C7CC56
analogous
#568CCC #5B56CC #9656CC
triadic
#5B56CC #CC5B56 #56CC5B
tetradic
#5B56CC #CC568C #C7CC56 #56CC96
square
#5B56CC #CC568C #C7CC56 #56CC96
split-complementary
#5B56CC #CC9656 #8CCC56
monochromatic
#2B2781 #3A35B0 #5B56CC #8985DA #B6B4E8

Accessibility & contrast

On white

5.76
#5B56CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5B56CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B56CC
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56CC#FFFFFF#000000##FFFFFF
##5B56CC1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD0
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#227289
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b56cc;
/* rgb */ color: rgb(91, 86, 204);
/* oklch */ color: oklch(52.4% 0.177 280.2);
Tailwind
colors: {
  custom: {
    50: '#9386dc',
    500: '#5b56cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b56cc;
$custom-light: #9386dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56cc",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 242.542,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52395,
    "c": 0.17727,
    "h": 280.2
  },
  "luminance": 0.13239
}

Semantic roles & 50–950 ramp

primary
#5B56CC
secondary
#D5D7A7
accent
#DD4BD7
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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