#5D51DB#5D51DB

#5D51DB is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.9% C 0.203 H 280.8°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#5D51DB
RGBrgb(93, 81, 219)
HSLhsl(245, 66%, 59%)
HSVhsv(245, 63%, 86%)
CMYKcmyk(57.5%, 63%, 0%, 14.1%)
CIE-LABlab(43.25, 43.19, -69.23)
CIE-LCHlch(43.25, 81.59, 301.96°)
OKLaboklab(52.88% 0.0381 -0.1991)
OKLCHoklch(52.88% 0.203 280.8)
XYZxyz(20.2388, 13.3251, 68.5096)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51DB #CFDB51
analogous
#518ADB #5D51DB #A251DB
triadic
#5D51DB #DB5D51 #51DB5D
tetradic
#5D51DB #DB518A #CFDB51 #51DBA2
square
#5D51DB #DB518A #CFDB51 #51DBA2
split-complementary
#5D51DB #DBA251 #8ADB51
monochromatic
#291E93 #3729C6 #5D51DB #8C84E5 #BBB6F0

Accessibility & contrast

On white

5.73
#5D51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5D51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51DB
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51DB#FFFFFF#000000##FFFFFF
##5D51DB1.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDF
Deuteranopia (green-blind)
#0061D8
Tritanopia (blue-blind)
#0E738F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5d51db;
/* rgb */ color: rgb(93, 81, 219);
/* oklch */ color: oklch(52.9% 0.203 280.8);
Tailwind
colors: {
  custom: {
    50: '#9783e7',
    500: '#5d51db',
    950: '#000000',
  },
}
SCSS
$custom: #5d51db;
$custom-light: #9783e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51db",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 245.217,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.5288,
    "c": 0.20268,
    "h": 280.8
  },
  "luminance": 0.13326
}

Semantic roles & 50–950 ramp

primary
#5D51DB
secondary
#DADFA9
accent
#E93FDA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5D51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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