#5170EA#5170EA

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

Color values

HEX#5170EA
RGBrgb(81, 112, 234)
HSLhsl(228, 78%, 62%)
HSVhsv(228, 65%, 92%)
CMYKcmyk(65.4%, 52.1%, 0%, 8.2%)
CIE-LABlab(51.01, 27.35, -65.15)
CIE-LCHlch(51.01, 70.66, 292.77°)
OKLaboklab(58.79% -0.0027 -0.1871)
OKLCHoklch(58.79% 0.187 269.2)
XYZxyz(24.0337, 19.2760, 80.2800)
Luminance0.1928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170EA #EACB51
analogous
#51BDEA #5170EA #7F51EA
triadic
#5170EA #EA5170 #70EA51
tetradic
#5170EA #EA51BD #EACB51 #51EA7F
square
#5170EA #EA51BD #EACB51 #51EA7F
split-complementary
#5170EA #EA7F51 #BDEA51
monochromatic
#1533AC #1B44E2 #5170EA #889DF1 #BECAF7

Accessibility & contrast

On white

4.32
#5170EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5170EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5170EA
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170EA#FFFFFF#000000##000000
##5170EA1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2081EE
Deuteranopia (green-blind)
#0073E8
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5170ea;
/* rgb */ color: rgb(81, 112, 234);
/* oklch */ color: oklch(58.8% 0.187 269.2);
Tailwind
colors: {
  custom: {
    50: '#9198f1',
    500: '#5170ea',
    950: '#000000',
  },
}
SCSS
$custom: #5170ea;
$custom-light: #9198f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5170ea",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 234
  },
  "hsl": {
    "h": 227.843,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.58786,
    "c": 0.18712,
    "h": 269.2
  },
  "luminance": 0.19278
}

Semantic roles & 50–950 ramp

primary
#5170EA
secondary
#E8DCAF
accent
#B10BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5170EA

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

Preview Lab → · Contrast checker → · Palette generator →

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