#5D51DC#5D51DC

#5D51DC is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.0% C 0.204 H 280.7°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#5D51DC
RGBrgb(93, 81, 220)
HSLhsl(245, 67%, 59%)
HSVhsv(245, 63%, 86%)
CMYKcmyk(57.7%, 63.2%, 0%, 13.7%)
CIE-LABlab(43.33, 43.50, -69.67)
CIE-LCHlch(43.33, 82.14, 301.98°)
OKLaboklab(52.96% 0.038 -0.2004)
OKLCHoklch(52.96% 0.204 280.7)
XYZxyz(20.3708, 13.3779, 69.2050)
Luminance0.1338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51DC #D0DC51
analogous
#518BDC #5D51DC #A351DC
triadic
#5D51DC #DC5D51 #51DC5D
tetradic
#5D51DC #DC518B #D0DC51 #51DCA3
square
#5D51DC #DC518B #D0DC51 #51DCA3
split-complementary
#5D51DC #DCA351 #8BDC51
monochromatic
#281E95 #3628C8 #5D51DC #8C84E6 #BCB7F0

Accessibility & contrast

On white

5.71
#5D51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5D51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51DC
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51DC#FFFFFF#000000##FFFFFF
##5D51DC1.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE0
Deuteranopia (green-blind)
#0061D9
Tritanopia (blue-blind)
#0A748F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5d51dc;
/* rgb */ color: rgb(93, 81, 220);
/* oklch */ color: oklch(53.0% 0.204 280.7);
Tailwind
colors: {
  custom: {
    50: '#9783e8',
    500: '#5d51dc',
    950: '#000000',
  },
}
SCSS
$custom: #5d51dc;
$custom-light: #9783e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51dc",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 245.18,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52961,
    "c": 0.20394,
    "h": 280.7
  },
  "luminance": 0.13379
}

Semantic roles & 50–950 ramp

primary
#5D51DC
secondary
#DBE0A9
accent
#E93EDB
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5D51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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