#5D51E1#5D51E1

#5D51E1 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.4% C 0.210 H 280.3°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5D51E1
RGBrgb(93, 81, 225)
HSLhsl(245, 71%, 60%)
HSVhsv(245, 64%, 88%)
CMYKcmyk(58.7%, 64%, 0%, 11.8%)
CIE-LABlab(43.72, 45.05, -71.87)
CIE-LCHlch(43.72, 84.83, 302.08°)
OKLaboklab(53.37% 0.0375 -0.2068)
OKLCHoklch(53.37% 0.21 280.3)
XYZxyz(21.0430, 13.6468, 72.7448)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51E1 #D5E151
analogous
#518DE1 #5D51E1 #A551E1
triadic
#5D51E1 #E15D51 #51E15D
tetradic
#5D51E1 #E1518D #D5E151 #51E1A5
square
#5D51E1 #E1518D #D5E151 #51E1A5
split-complementary
#5D51E1 #E1A551 #8DE151
monochromatic
#261B9D #3224D1 #5D51E1 #8E85EA #BEB9F3

Accessibility & contrast

On white

5.63
#5D51E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5D51E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51E1
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51E1#FFFFFF#000000##FFFFFF
##5D51E11.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE6
Deuteranopia (green-blind)
#0062DE
Tritanopia (blue-blind)
#007592
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5d51e1;
/* rgb */ color: rgb(93, 81, 225);
/* oklch */ color: oklch(53.4% 0.210 280.3);
Tailwind
colors: {
  custom: {
    50: '#9883eb',
    500: '#5d51e1',
    950: '#000000',
  },
}
SCSS
$custom: #5d51e1;
$custom-light: #9883eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51e1",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 225
  },
  "hsl": {
    "h": 245,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.53372,
    "c": 0.21022,
    "h": 280.3
  },
  "luminance": 0.13648
}

Semantic roles & 50–950 ramp

primary
#5D51E1
secondary
#DEE3AB
accent
#ED3ADE
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5D51E1

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

Preview Lab → · Contrast checker → · Palette generator →

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