#5170DE#5170DE

#5170DE is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.9% C 0.171 H 268.7°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5170DE
RGBrgb(81, 112, 222)
HSLhsl(227, 68%, 59%)
HSVhsv(227, 64%, 87%)
CMYKcmyk(63.5%, 49.5%, 0%, 12.9%)
CIE-LABlab(50.23, 23.23, -59.66)
CIE-LCHlch(50.23, 64.02, 291.28°)
OKLaboklab(57.95% -0.0038 -0.1709)
OKLCHoklch(57.95% 0.171 268.7)
XYZxyz(22.3678, 18.6096, 71.5063)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170DE #DEBF51
analogous
#51B6DE #5170DE #7951DE
triadic
#5170DE #DE5170 #70DE51
tetradic
#5170DE #DE51B6 #DEBF51 #51DE79
square
#5170DE #DE51B6 #DEBF51 #51DE79
split-complementary
#5170DE #DE7951 #B6DE51
monochromatic
#1D3898 #274BCB #5170DE #849AE8 #B8C5F2

Accessibility & contrast

On white

4.45
#5170DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#5170DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5170DE
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170DE#FFFFFF#000000##000000
##5170DE1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#337EE2
Deuteranopia (green-blind)
#0A71DC
Tritanopia (blue-blind)
#008A9C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5170de;
/* rgb */ color: rgb(81, 112, 222);
/* oklch */ color: oklch(57.9% 0.171 268.7);
Tailwind
colors: {
  custom: {
    50: '#8f98e9',
    500: '#5170de',
    950: '#000000',
  },
}
SCSS
$custom: #5170de;
$custom-light: #8f98e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5170de",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 222
  },
  "hsl": {
    "h": 226.809,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.57945,
    "c": 0.17099,
    "h": 268.7
  },
  "luminance": 0.18612
}

Semantic roles & 50–950 ramp

primary
#5170DE
secondary
#E1D5AA
accent
#C53DEB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5170DE

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

Preview Lab → · Contrast checker → · Palette generator →

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