#5B54DB#5B54DB

#5B54DB is a mid, vivid blue. Relative luminance 0.137; OKLCH L 53.2% C 0.199 H 279.5°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5B54DB
RGBrgb(91, 84, 219)
HSLhsl(243, 65%, 59%)
HSVhsv(243, 62%, 86%)
CMYKcmyk(58.4%, 61.6%, 0%, 14.1%)
CIE-LABlab(43.77, 41.09, -68.39)
CIE-LCHlch(43.77, 79.79, 301.00°)
OKLaboklab(53.22% 0.0329 -0.1966)
OKLCHoklch(53.22% 0.199 279.5)
XYZxyz(20.2668, 13.6778, 68.5762)
Luminance0.1368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54DB #D4DB54
analogous
#5491DB #5B54DB #9F54DB
triadic
#5B54DB #DB5B54 #54DB5B
tetradic
#5B54DB #DB5491 #D4DB54 #54DB9F
square
#5B54DB #DB5491 #D4DB54 #54DB9F
split-complementary
#5B54DB #DB9F54 #91DB54
monochromatic
#261F95 #322AC8 #5B54DB #8B87E6 #BCB9F0

Accessibility & contrast

On white

5.62
#5B54DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5B54DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54DB
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54DB#FFFFFF#000000##FFFFFF
##5B54DB1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDF
Deuteranopia (green-blind)
#0062D8
Tritanopia (blue-blind)
#007590
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5b54db;
/* rgb */ color: rgb(91, 84, 219);
/* oklch */ color: oklch(53.2% 0.199 279.5);
Tailwind
colors: {
  custom: {
    50: '#9585e7',
    500: '#5b54db',
    950: '#000000',
  },
}
SCSS
$custom: #5b54db;
$custom-light: #9585e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54db",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 219
  },
  "hsl": {
    "h": 243.111,
    "s": 65.217,
    "l": 59.412
  },
  "oklch": {
    "l": 0.5322,
    "c": 0.19938,
    "h": 279.5
  },
  "luminance": 0.13679
}

Semantic roles & 50–950 ramp

primary
#5B54DB
secondary
#DDE0AB
accent
#E840DF
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B54DB

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

Preview Lab → · Contrast checker → · Palette generator →

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