#5B54BB#5B54BB

#5B54BB is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.8% C 0.157 H 282.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5B54BB
RGBrgb(91, 84, 187)
HSLhsl(244, 43%, 53%)
HSVhsv(244, 55%, 73%)
CMYKcmyk(51.3%, 55.1%, 0%, 26.7%)
CIE-LABlab(41.46, 30.99, -53.66)
CIE-LCHlch(41.46, 61.97, 300.01°)
OKLaboklab(50.79% 0.0335 -0.1533)
OKLCHoklch(50.79% 0.157 282.3)
XYZxyz(16.4516, 12.1517, 48.4827)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54BB #B4BB54
analogous
#5480BB #5B54BB #8E54BB
triadic
#5B54BB #BB5B54 #54BB5B
tetradic
#5B54BB #BB5480 #B4BB54 #54BB8E
square
#5B54BB #BB5480 #B4BB54 #54BB8E
split-complementary
#5B54BB #BB8E54 #80BB54
monochromatic
#2F2A6A #423C96 #5B54BB #8580CC #AFACDE

Accessibility & contrast

On white

6.12
#5B54BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5B54BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54BB
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54BB#FFFFFF#000000##FFFFFF
##5B54BB1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1565BF
Deuteranopia (green-blind)
#055EB9
Tritanopia (blue-blind)
#356B7F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b54bb;
/* rgb */ color: rgb(91, 84, 187);
/* oklch */ color: oklch(50.8% 0.157 282.3);
Tailwind
colors: {
  custom: {
    50: '#9084d0',
    500: '#5b54bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b54bb;
$custom-light: #9084d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54bb",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 187
  },
  "hsl": {
    "h": 244.078,
    "s": 43.096,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50786,
    "c": 0.15695,
    "h": 282.3
  },
  "luminance": 0.12153
}

Semantic roles & 50–950 ramp

primary
#5B54BB
secondary
#C9CC9F
accent
#D355CA
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5B54BB

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

Preview Lab → · Contrast checker → · Palette generator →

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