#5B57DB#5B57DB

#5B57DB is a mid, vivid blue. Relative luminance 0.142; OKLCH L 53.7% C 0.196 H 278.9°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5B57DB
RGBrgb(91, 87, 219)
HSLhsl(242, 65%, 60%)
HSVhsv(242, 60%, 86%)
CMYKcmyk(58.4%, 60.3%, 0%, 14.1%)
CIE-LABlab(44.45, 39.31, -67.27)
CIE-LCHlch(44.45, 77.91, 300.30°)
OKLaboklab(53.72% 0.0302 -0.1934)
OKLCHoklch(53.72% 0.196 278.9)
XYZxyz(20.5047, 14.1535, 68.6555)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57DB #D7DB57
analogous
#5795DB #5B57DB #9D57DB
triadic
#5B57DB #DB5B57 #57DB5B
tetradic
#5B57DB #DB5795 #D7DB57 #57DB9D
square
#5B57DB #DB5795 #D7DB57 #57DB9D
split-complementary
#5B57DB #DB9D57 #95DB57
monochromatic
#242097 #302BCA #5B57DB #8C89E6 #BDBCF1

Accessibility & contrast

On white

5.48
#5B57DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5B57DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57DB
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57DB#FFFFFF#000000##FFFFFF
##5B57DB1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDF
Deuteranopia (green-blind)
#0064D8
Tritanopia (blue-blind)
#007791
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b57db;
/* rgb */ color: rgb(91, 87, 219);
/* oklch */ color: oklch(53.7% 0.196 278.9);
Tailwind
colors: {
  custom: {
    50: '#9587e7',
    500: '#5b57db',
    950: '#000000',
  },
}
SCSS
$custom: #5b57db;
$custom-light: #9587e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57db",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 241.818,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.53723,
    "c": 0.1957,
    "h": 278.9
  },
  "luminance": 0.14155
}

Semantic roles & 50–950 ramp

primary
#5B57DB
secondary
#DFE0AD
accent
#E840E3
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5B57DB

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

Preview Lab → · Contrast checker → · Palette generator →

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