#5171DC#5171DC

#5171DC is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.0% C 0.167 H 268.3°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5171DC
RGBrgb(81, 113, 220)
HSLhsl(226, 67%, 59%)
HSVhsv(226, 63%, 86%)
CMYKcmyk(63.2%, 48.6%, 0%, 13.7%)
CIE-LABlab(50.36, 21.93, -58.31)
CIE-LCHlch(50.36, 62.30, 290.61°)
OKLaboklab(58.01% -0.0049 -0.167)
OKLCHoklch(58.01% 0.167 268.3)
XYZxyz(22.2123, 18.7249, 70.1400)
Luminance0.1873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171DC #DCBC51
analogous
#51B7DC #5171DC #7751DC
triadic
#5171DC #DC5171 #71DC51
tetradic
#5171DC #DC51B7 #DCBC51 #51DC77
square
#5171DC #DC51B7 #DCBC51 #51DC77
split-complementary
#5171DC #DC7751 #B7DC51
monochromatic
#1E3995 #284DC8 #5171DC #849BE6 #B7C4F0

Accessibility & contrast

On white

4.43
#5171DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#5171DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171DC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171DC#FFFFFF#000000##000000
##5171DC1.004.434.754.75
#FFFFFF4.431.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#387EE0
Deuteranopia (green-blind)
#1872DA
Tritanopia (blue-blind)
#008A9C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5171dc;
/* rgb */ color: rgb(81, 113, 220);
/* oklch */ color: oklch(58.0% 0.167 268.3);
Tailwind
colors: {
  custom: {
    50: '#8f99e7',
    500: '#5171dc',
    950: '#000000',
  },
}
SCSS
$custom: #5171dc;
$custom-light: #8f99e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5171dc",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 226.187,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58008,
    "c": 0.16703,
    "h": 268.3
  },
  "luminance": 0.18727
}

Semantic roles & 50–950 ramp

primary
#5171DC
secondary
#E0D3A9
accent
#C23EE9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5171DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5171DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva