#5170EE#5170EE

#5170EE is a mid, vivid blue. Relative luminance 0.195; OKLCH L 59.1% C 0.192 H 269.3°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5170EE
RGBrgb(81, 112, 238)
HSLhsl(228, 82%, 63%)
HSVhsv(228, 66%, 93%)
CMYKcmyk(66%, 52.9%, 0%, 6.7%)
CIE-LABlab(51.28, 28.72, -66.95)
CIE-LCHlch(51.28, 72.85, 293.22°)
OKLaboklab(59.07% -0.0024 -0.1924)
OKLCHoklch(59.07% 0.192 269.3)
XYZxyz(24.6149, 19.5084, 83.3406)
Luminance0.1951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170EE #EECF51
analogous
#51BEEE #5170EE #8151EE
triadic
#5170EE #EE5170 #70EE51
tetradic
#5170EE #EE51BE #EECF51 #51EE81
square
#5170EE #EE51BE #EECF51 #51EE81
split-complementary
#5170EE #EE8151 #BEEE51
monochromatic
#1131B3 #1942E9 #5170EE #899EF3 #C1CCF9

Accessibility & contrast

On white

4.28
#5170EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#5170EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5170EE
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170EE#FFFFFF#000000##000000
##5170EE1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1682F2
Deuteranopia (green-blind)
#0073EB
Tritanopia (blue-blind)
#008EA4
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5170ee;
/* rgb */ color: rgb(81, 112, 238);
/* oklch */ color: oklch(59.1% 0.192 269.3);
Tailwind
colors: {
  custom: {
    50: '#9298f4',
    500: '#5170ee',
    950: '#000000',
  },
}
SCSS
$custom: #5170ee;
$custom-light: #9298f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5170ee",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 238
  },
  "hsl": {
    "h": 228.153,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59073,
    "c": 0.19243,
    "h": 269.3
  },
  "luminance": 0.19511
}

Semantic roles & 50–950 ramp

primary
#5170EE
secondary
#EADFB1
accent
#B407DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5170EE

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

Preview Lab → · Contrast checker → · Palette generator →

#5170EE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva