#5170EB#5170EB

#5170EB is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.9% C 0.188 H 269.2°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5170EB
RGBrgb(81, 112, 235)
HSLhsl(228, 79%, 62%)
HSVhsv(228, 66%, 92%)
CMYKcmyk(65.5%, 52.3%, 0%, 7.8%)
CIE-LABlab(51.08, 27.69, -65.60)
CIE-LCHlch(51.08, 71.21, 292.88°)
OKLaboklab(58.86% -0.0026 -0.1884)
OKLCHoklch(58.86% 0.188 269.2)
XYZxyz(24.1778, 19.3336, 81.0387)
Luminance0.1934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170EB #EBCC51
analogous
#51BDEB #5170EB #7F51EB
triadic
#5170EB #EB5170 #70EB51
tetradic
#5170EB #EB51BD #EBCC51 #51EB7F
square
#5170EB #EB51BD #EBCC51 #51EB7F
split-complementary
#5170EB #EB7F51 #BDEB51
monochromatic
#1433AE #1A43E5 #5170EB #889DF1 #BFCAF8

Accessibility & contrast

On white

4.31
#5170EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5170EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5170EB
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170EB#FFFFFF#000000##000000
##5170EB1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E81EF
Deuteranopia (green-blind)
#0073E9
Tritanopia (blue-blind)
#008DA3
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5170eb;
/* rgb */ color: rgb(81, 112, 235);
/* oklch */ color: oklch(58.9% 0.188 269.2);
Tailwind
colors: {
  custom: {
    50: '#9198f2',
    500: '#5170eb',
    950: '#000000',
  },
}
SCSS
$custom: #5170eb;
$custom-light: #9198f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5170eb",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 235
  },
  "hsl": {
    "h": 227.922,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.58857,
    "c": 0.18846,
    "h": 269.2
  },
  "luminance": 0.19336
}

Semantic roles & 50–950 ramp

primary
#5170EB
secondary
#E8DDB0
accent
#B10ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5170EB

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

Preview Lab → · Contrast checker → · Palette generator →

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