#5D51D9#5D51D9

#5D51D9 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.7% C 0.200 H 281.0°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5D51D9
RGBrgb(93, 81, 217)
HSLhsl(245, 64%, 58%)
HSVhsv(245, 63%, 85%)
CMYKcmyk(57.1%, 62.7%, 0%, 14.9%)
CIE-LABlab(43.09, 42.57, -68.34)
CIE-LCHlch(43.09, 80.51, 301.92°)
OKLaboklab(52.72% 0.0382 -0.1965)
OKLCHoklch(52.72% 0.2 281)
XYZxyz(19.9771, 13.2204, 67.1313)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51D9 #CDD951
analogous
#5189D9 #5D51D9 #A151D9
triadic
#5D51D9 #D95D51 #51D95D
tetradic
#5D51D9 #D95189 #CDD951 #51D9A1
square
#5D51D9 #D95189 #CDD951 #51D9A1
split-complementary
#5D51D9 #D9A151 #89D951
monochromatic
#291F90 #382AC2 #5D51D9 #8C83E4 #BBB5EF

Accessibility & contrast

On white

5.76
#5D51D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5D51D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51D9
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51D9#FFFFFF#000000##FFFFFF
##5D51D91.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDD
Deuteranopia (green-blind)
#0061D6
Tritanopia (blue-blind)
#14738D
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5d51d9;
/* rgb */ color: rgb(93, 81, 217);
/* oklch */ color: oklch(52.7% 0.200 281.0);
Tailwind
colors: {
  custom: {
    50: '#9683e6',
    500: '#5d51d9',
    950: '#000000',
  },
}
SCSS
$custom: #5d51d9;
$custom-light: #9683e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51d9",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 245.294,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52718,
    "c": 0.20014,
    "h": 281
  },
  "luminance": 0.13222
}

Semantic roles & 50–950 ramp

primary
#5D51D9
secondary
#D9DEA8
accent
#E741D8
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5D51D9

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

Preview Lab → · Contrast checker → · Palette generator →

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