#5171DD#5171DD

#5171DD is a mid, vivid blue. Relative luminance 0.188; OKLCH L 58.1% C 0.168 H 268.4°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5171DD
RGBrgb(81, 113, 221)
HSLhsl(226, 67%, 59%)
HSVhsv(226, 63%, 87%)
CMYKcmyk(63.3%, 48.9%, 0%, 13.3%)
CIE-LABlab(50.43, 22.27, -58.77)
CIE-LCHlch(50.43, 62.85, 290.75°)
OKLaboklab(58.08% -0.0048 -0.1683)
OKLCHoklch(58.08% 0.168 268.4)
XYZxyz(22.3452, 18.7780, 70.8396)
Luminance0.1878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171DD #DDBD51
analogous
#51B7DD #5171DD #7751DD
triadic
#5171DD #DD5171 #71DD51
tetradic
#5171DD #DD51B7 #DDBD51 #51DD77
square
#5171DD #DD51B7 #DDBD51 #51DD77
split-complementary
#5171DD #DD7751 #B7DD51
monochromatic
#1D3996 #274CC9 #5171DD #849BE7 #B7C5F1

Accessibility & contrast

On white

4.42
#5171DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5171DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171DD
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171DD#FFFFFF#000000##000000
##5171DD1.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#377FE1
Deuteranopia (green-blind)
#1572DB
Tritanopia (blue-blind)
#008A9C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5171dd;
/* rgb */ color: rgb(81, 113, 221);
/* oklch */ color: oklch(58.1% 0.168 268.4);
Tailwind
colors: {
  custom: {
    50: '#8f99e8',
    500: '#5171dd',
    950: '#000000',
  },
}
SCSS
$custom: #5171dd;
$custom-light: #8f99e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5171dd",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 226.286,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58076,
    "c": 0.1684,
    "h": 268.4
  },
  "luminance": 0.1878
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5171DD

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

Preview Lab → · Contrast checker → · Palette generator →

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