#5D51CF#5D51CF

#5D51CF is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.9% C 0.187 H 282.0°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5D51CF
RGBrgb(93, 81, 207)
HSLhsl(246, 57%, 56%)
HSVhsv(246, 61%, 81%)
CMYKcmyk(55.1%, 60.9%, 0%, 18.8%)
CIE-LABlab(42.33, 39.46, -63.84)
CIE-LCHlch(42.33, 75.05, 301.72°)
OKLaboklab(51.92% 0.0389 -0.1832)
OKLCHoklch(51.92% 0.187 282)
XYZxyz(18.7156, 12.7159, 60.4876)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51CF #C3CF51
analogous
#5184CF #5D51CF #9C51CF
triadic
#5D51CF #CF5D51 #51CF5D
tetradic
#5D51CF #CF5184 #C3CF51 #51CF9C
square
#5D51CF #CF5184 #C3CF51 #51CF9C
split-complementary
#5D51CF #CF9C51 #84CF51
monochromatic
#2D2482 #3D31B2 #5D51CF #8A81DC #B6B1E9

Accessibility & contrast

On white

5.93
#5D51CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5D51CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51CF
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51CF#FFFFFF#000000##FFFFFF
##5D51CF1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#005FCC
Tritanopia (blue-blind)
#266F88
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5d51cf;
/* rgb */ color: rgb(93, 81, 207);
/* oklch */ color: oklch(51.9% 0.187 282.0);
Tailwind
colors: {
  custom: {
    50: '#9582df',
    500: '#5d51cf',
    950: '#000000',
  },
}
SCSS
$custom: #5d51cf;
$custom-light: #9582df;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51cf",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 245.714,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51923,
    "c": 0.18732,
    "h": 282
  },
  "luminance": 0.12717
}

Semantic roles & 50–950 ramp

primary
#5D51CF
secondary
#D3D8A4
accent
#E048D2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5D51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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