#5D51DF#5D51DF

#5D51DF is a mid, highly saturated blue. Relative luminance 0.135; OKLCH L 53.2% C 0.208 H 280.5°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#5D51DF
RGBrgb(93, 81, 223)
HSLhsl(245, 69%, 60%)
HSVhsv(245, 64%, 87%)
CMYKcmyk(58.3%, 63.7%, 0%, 12.5%)
CIE-LABlab(43.56, 44.43, -70.99)
CIE-LCHlch(43.56, 83.75, 302.04°)
OKLaboklab(53.21% 0.0377 -0.2043)
OKLCHoklch(53.21% 0.208 280.5)
XYZxyz(20.7717, 13.5383, 71.3163)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51DF #D3DF51
analogous
#518CDF #5D51DF #A451DF
triadic
#5D51DF #DF5D51 #51DF5D
tetradic
#5D51DF #DF518C #D3DF51 #51DFA4
square
#5D51DF #DF518C #D3DF51 #51DFA4
split-complementary
#5D51DF #DFA451 #8CDF51
monochromatic
#271C99 #3426CD #5D51DF #8D85E9 #BDB8F2

Accessibility & contrast

On white

5.66
#5D51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5D51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51DF
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51DF#FFFFFF#000000##FFFFFF
##5D51DF1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE3
Deuteranopia (green-blind)
#0062DC
Tritanopia (blue-blind)
#007591
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5d51df;
/* rgb */ color: rgb(93, 81, 223);
/* oklch */ color: oklch(53.2% 0.208 280.5);
Tailwind
colors: {
  custom: {
    50: '#9783ea',
    500: '#5d51df',
    950: '#000000',
  },
}
SCSS
$custom: #5d51df;
$custom-light: #9783ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51df",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 245.07,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.53207,
    "c": 0.20771,
    "h": 280.5
  },
  "luminance": 0.1354
}

Semantic roles & 50–950 ramp

primary
#5D51DF
secondary
#DDE1AA
accent
#EC3CDD
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5D51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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