#5D51CD#5D51CD

#5D51CD is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.8% C 0.185 H 282.2°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5D51CD
RGBrgb(93, 81, 205)
HSLhsl(246, 55%, 56%)
HSVhsv(246, 60%, 80%)
CMYKcmyk(54.6%, 60.5%, 0%, 19.6%)
CIE-LABlab(42.18, 38.83, -62.93)
CIE-LCHlch(42.18, 73.95, 301.68°)
OKLaboklab(51.77% 0.039 -0.1806)
OKLCHoklch(51.77% 0.185 282.2)
XYZxyz(18.4727, 12.6187, 59.2080)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51CD #C1CD51
analogous
#5183CD #5D51CD #9B51CD
triadic
#5D51CD #CD5D51 #51CD5D
tetradic
#5D51CD #CD5183 #C1CD51 #51CD9B
square
#5D51CD #CD5183 #C1CD51 #51CD9B
split-complementary
#5D51CD #CD9B51 #83CD51
monochromatic
#2D257F #3E32AF #5D51CD #8981DB #B6B0E8

Accessibility & contrast

On white

5.96
#5D51CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5D51CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51CD
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51CD#FFFFFF#000000##FFFFFF
##5D51CD1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#296F87
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5d51cd;
/* rgb */ color: rgb(93, 81, 205);
/* oklch */ color: oklch(51.8% 0.185 282.2);
Tailwind
colors: {
  custom: {
    50: '#9482dd',
    500: '#5d51cd',
    950: '#000000',
  },
}
SCSS
$custom: #5d51cd;
$custom-light: #9482dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51cd",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 245.806,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.51767,
    "c": 0.18472,
    "h": 282.2
  },
  "luminance": 0.1262
}

Semantic roles & 50–950 ramp

primary
#5D51CD
secondary
#D2D7A3
accent
#DF49D0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5D51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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