#5B56BB#5B56BB

#5B56BB is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.2% C 0.154 H 281.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#5B56BB
RGBrgb(91, 86, 187)
HSLhsl(243, 43%, 54%)
HSVhsv(243, 54%, 73%)
CMYKcmyk(51.3%, 54%, 0%, 26.7%)
CIE-LABlab(41.95, 29.76, -52.87)
CIE-LCHlch(41.95, 60.67, 299.38°)
OKLaboklab(51.15% 0.0312 -0.151)
OKLCHoklch(51.15% 0.154 281.7)
XYZxyz(16.6091, 12.4667, 48.5352)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B56BB #B6BB56
analogous
#5683BB #5B56BB #8D56BB
triadic
#5B56BB #BB5B56 #56BB5B
tetradic
#5B56BB #BB5683 #B6BB56 #56BB8D
square
#5B56BB #BB5683 #B6BB56 #56BB8D
split-complementary
#5B56BB #BB8D56 #83BB56
monochromatic
#2E2B6B #413D97 #5B56BB #8582CD #B0ADDE

Accessibility & contrast

On white

6.01
#5B56BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B56BB
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B56BB#FFFFFF#000000##FFFFFF
##5B56BB1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D67BE
Deuteranopia (green-blind)
#105FB9
Tritanopia (blue-blind)
#356D80
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b56bb;
/* rgb */ color: rgb(91, 86, 187);
/* oklch */ color: oklch(51.2% 0.154 281.7);
Tailwind
colors: {
  custom: {
    50: '#9085d0',
    500: '#5b56bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b56bb;
$custom-light: #9085d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b56bb",
  "rgb": {
    "r": 91,
    "g": 86,
    "b": 187
  },
  "hsl": {
    "h": 242.97,
    "s": 42.616,
    "l": 53.529
  },
  "oklch": {
    "l": 0.51152,
    "c": 0.15419,
    "h": 281.7
  },
  "luminance": 0.12468
}

Semantic roles & 50–950 ramp

primary
#5B56BB
secondary
#CACCA1
accent
#D255CC
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5B56BB

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

Preview Lab → · Contrast checker → · Palette generator →

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