#5D51EE#5D51EE

#5D51EE is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.5% C 0.226 H 279.2°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5D51EE
RGBrgb(93, 81, 238)
HSLhsl(245, 82%, 63%)
HSVhsv(245, 66%, 93%)
CMYKcmyk(60.9%, 66%, 0%, 6.7%)
CIE-LABlab(44.78, 49.08, -77.50)
CIE-LCHlch(44.78, 91.73, 302.35°)
OKLaboklab(54.46% 0.0361 -0.2233)
OKLCHoklch(54.46% 0.226 279.2)
XYZxyz(22.8843, 14.3833, 82.4427)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D51EE #E2EE51
analogous
#5193EE #5D51EE #AB51EE
triadic
#5D51EE #EE5D51 #51EE5D
tetradic
#5D51EE #EE5193 #E2EE51 #51EEAB
square
#5D51EE #EE5193 #E2EE51 #51EEAB
split-complementary
#5D51EE #EEAB51 #93EE51
monochromatic
#1E11B3 #2919E9 #5D51EE #9189F3 #C5C1F9

Accessibility & contrast

On white

5.42
#5D51EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#5D51EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D51EE
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D51EE#FFFFFF#000000##FFFFFF
##5D51EE1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F3
Deuteranopia (green-blind)
#0064EB
Tritanopia (blue-blind)
#007A99
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5d51ee;
/* rgb */ color: rgb(93, 81, 238);
/* oklch */ color: oklch(54.5% 0.226 279.2);
Tailwind
colors: {
  custom: {
    50: '#9a83f5',
    500: '#5d51ee',
    950: '#000000',
  },
}
SCSS
$custom: #5d51ee;
$custom-light: #9a83f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d51ee",
  "rgb": {
    "r": 93,
    "g": 81,
    "b": 238
  },
  "hsl": {
    "h": 244.586,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.54463,
    "c": 0.22625,
    "h": 279.2
  },
  "luminance": 0.14385
}

Semantic roles & 50–950 ramp

primary
#5D51EE
secondary
#E6EAB1
accent
#DF07CE
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5D51EE

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

Preview Lab → · Contrast checker → · Palette generator →

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