#5170E5#5170E5

#5170E5 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.4% C 0.180 H 269.0°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5170E5
RGBrgb(81, 112, 229)
HSLhsl(227, 74%, 61%)
HSVhsv(227, 65%, 90%)
CMYKcmyk(64.6%, 51.1%, 0%, 10.2%)
CIE-LABlab(50.68, 25.63, -62.88)
CIE-LCHlch(50.68, 67.90, 292.18°)
OKLaboklab(58.43% -0.0031 -0.1804)
OKLCHoklch(58.43% 0.18 269)
XYZxyz(23.3255, 18.9927, 76.5503)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170E5 #E5C651
analogous
#51BAE5 #5170E5 #7C51E5
triadic
#5170E5 #E55170 #70E551
tetradic
#5170E5 #E551BA #E5C651 #51E57C
square
#5170E5 #E551BA #E5C651 #51E57C
split-complementary
#5170E5 #E57C51 #BAE551
monochromatic
#1835A3 #2047D8 #5170E5 #869CED #BBC8F5

Accessibility & contrast

On white

4.38
#5170E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#5170E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5170E5
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170E5#FFFFFF#000000##000000
##5170E51.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2980E9
Deuteranopia (green-blind)
#0072E3
Tritanopia (blue-blind)
#008BA0
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5170e5;
/* rgb */ color: rgb(81, 112, 229);
/* oklch */ color: oklch(58.4% 0.180 269.0);
Tailwind
colors: {
  custom: {
    50: '#9098ee',
    500: '#5170e5',
    950: '#000000',
  },
}
SCSS
$custom: #5170e5;
$custom-light: #9098ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5170e5",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 229
  },
  "hsl": {
    "h": 227.432,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58431,
    "c": 0.18044,
    "h": 269
  },
  "luminance": 0.18995
}

Semantic roles & 50–950 ramp

primary
#5170E5
secondary
#E5D9AD
accent
#AC0FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5170E5

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

Preview Lab → · Contrast checker → · Palette generator →

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