#5170DD#5170DD

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

Color values

HEX#5170DD
RGBrgb(81, 112, 221)
HSLhsl(227, 67%, 59%)
HSVhsv(227, 63%, 87%)
CMYKcmyk(63.3%, 49.3%, 0%, 13.3%)
CIE-LABlab(50.16, 22.89, -59.20)
CIE-LCHlch(50.16, 63.47, 291.14°)
OKLaboklab(57.88% -0.0039 -0.1696)
OKLCHoklch(57.88% 0.17 268.7)
XYZxyz(22.2342, 18.5561, 70.8026)
Luminance0.1856 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170DD #DDBE51
analogous
#51B6DD #5170DD #7851DD
triadic
#5170DD #DD5170 #70DD51
tetradic
#5170DD #DD51B6 #DDBE51 #51DD78
square
#5170DD #DD51B6 #DDBE51 #51DD78
split-complementary
#5170DD #DD7851 #B6DD51
monochromatic
#1D3896 #274BC9 #5170DD #849AE7 #B7C4F1

Accessibility & contrast

On white

4.46
#5170DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#5170DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5170DD
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170DD#FFFFFF#000000##000000
##5170DD1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#347EE1
Deuteranopia (green-blind)
#0F71DB
Tritanopia (blue-blind)
#00899C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5170dd;
/* rgb */ color: rgb(81, 112, 221);
/* oklch */ color: oklch(57.9% 0.170 268.7);
Tailwind
colors: {
  custom: {
    50: '#8f98e8',
    500: '#5170dd',
    950: '#000000',
  },
}
SCSS
$custom: #5170dd;
$custom-light: #8f98e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5170dd",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 221
  },
  "hsl": {
    "h": 226.714,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.57877,
    "c": 0.16963,
    "h": 268.7
  },
  "luminance": 0.18558
}

Semantic roles & 50–950 ramp

primary
#5170DD
secondary
#E0D4AA
accent
#C43EEA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5170DD

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

Preview Lab → · Contrast checker → · Palette generator →

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