#5170CD#5170CD

#5170CD is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.8% C 0.148 H 267.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5170CD
RGBrgb(81, 112, 205)
HSLhsl(225, 55%, 56%)
HSVhsv(225, 60%, 80%)
CMYKcmyk(60.5%, 45.4%, 0%, 19.6%)
CIE-LABlab(49.18, 17.43, -51.68)
CIE-LCHlch(49.18, 54.54, 288.64°)
OKLaboklab(56.81% -0.006 -0.1475)
OKLCHoklch(56.81% 0.148 267.7)
XYZxyz(20.2032, 17.7437, 60.1060)
Luminance0.1774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170CD #CDAE51
analogous
#51AECD #5170CD #7051CD
triadic
#5170CD #CD5170 #70CD51
tetradic
#5170CD #CD51AE #CDAE51 #51CD70
square
#5170CD #CD51AE #CDAE51 #51CD70
split-complementary
#5170CD #CD7051 #AECD51
monochromatic
#253B7F #3251AF #5170CD #8197DB #B0BEE8

Accessibility & contrast

On white

4.62
#5170CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#5170CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5170CD
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170CD#FFFFFF#000000##FFFFFF
##5170CD1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#447BD0
Deuteranopia (green-blind)
#3170CB
Tritanopia (blue-blind)
#008594
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5170cd;
/* rgb */ color: rgb(81, 112, 205);
/* oklch */ color: oklch(56.8% 0.148 267.7);
Tailwind
colors: {
  custom: {
    50: '#8c98dd',
    500: '#5170cd',
    950: '#000000',
  },
}
SCSS
$custom: #5170cd;
$custom-light: #8c98dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5170cd",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 205
  },
  "hsl": {
    "h": 225,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.56814,
    "c": 0.1476,
    "h": 267.7
  },
  "luminance": 0.17745
}

Semantic roles & 50–950 ramp

primary
#5170CD
secondary
#D7CAA3
accent
#B949DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5170CD

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

Preview Lab → · Contrast checker → · Palette generator →

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