#5170C8#5170C8

#5170C8 is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.5% C 0.141 H 267.2°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#5170C8
RGBrgb(81, 112, 200)
HSLhsl(224, 52%, 55%)
HSVhsv(224, 60%, 78%)
CMYKcmyk(59.5%, 44%, 0%, 21.6%)
CIE-LABlab(48.89, 15.74, -49.29)
CIE-LCHlch(48.89, 51.74, 287.71°)
OKLaboklab(56.5% -0.0068 -0.1405)
OKLCHoklch(56.5% 0.141 267.2)
XYZxyz(19.6093, 17.5062, 56.9781)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170C8 #C8A951
analogous
#51ABC8 #5170C8 #6E51C8
triadic
#5170C8 #C85170 #70C851
tetradic
#5170C8 #C851AB #C8A951 #51C86E
square
#5170C8 #C851AB #C8A951 #51C86E
split-complementary
#5170C8 #C86E51 #ABC851
monochromatic
#263C79 #3553A7 #5170C8 #8096D7 #AEBCE5

Accessibility & contrast

On white

4.67
#5170C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#5170C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5170C8
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170C8#FFFFFF#000000##FFFFFF
##5170C81.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#487ACB
Deuteranopia (green-blind)
#376FC6
Tritanopia (blue-blind)
#008492
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5170c8;
/* rgb */ color: rgb(81, 112, 200);
/* oklch */ color: oklch(56.5% 0.141 267.2);
Tailwind
colors: {
  custom: {
    50: '#8c98d9',
    500: '#5170c8',
    950: '#000000',
  },
}
SCSS
$custom: #5170c8;
$custom-light: #8c98d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5170c8",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 200
  },
  "hsl": {
    "h": 224.37,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.56496,
    "c": 0.14062,
    "h": 267.2
  },
  "luminance": 0.17508
}

Semantic roles & 50–950 ramp

primary
#5170C8
secondary
#D3C6A1
accent
#B64CDB
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5170C8

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

Preview Lab → · Contrast checker → · Palette generator →

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