#5170CE#5170CE

#5170CE is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.9% C 0.149 H 267.8°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5170CE
RGBrgb(81, 112, 206)
HSLhsl(225, 56%, 56%)
HSVhsv(225, 61%, 81%)
CMYKcmyk(60.7%, 45.6%, 0%, 19.2%)
CIE-LABlab(49.24, 17.77, -52.16)
CIE-LCHlch(49.24, 55.10, 288.82°)
OKLaboklab(56.88% -0.0058 -0.1489)
OKLCHoklch(56.88% 0.149 267.8)
XYZxyz(20.3243, 17.7922, 60.7437)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170CE #CEAF51
analogous
#51AFCE #5170CE #7151CE
triadic
#5170CE #CE5170 #70CE51
tetradic
#5170CE #CE51AF #CEAF51 #51CE71
square
#5170CE #CE51AF #CEAF51 #51CE71
split-complementary
#5170CE #CE7151 #AFCE51
monochromatic
#243B80 #3251B0 #5170CE #8197DB #B1BEE9

Accessibility & contrast

On white

4.61
#5170CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#5170CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5170CE
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170CE#FFFFFF#000000##FFFFFF
##5170CE1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#437BD2
Deuteranopia (green-blind)
#2F70CC
Tritanopia (blue-blind)
#008595
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5170ce;
/* rgb */ color: rgb(81, 112, 206);
/* oklch */ color: oklch(56.9% 0.149 267.8);
Tailwind
colors: {
  custom: {
    50: '#8d98dd',
    500: '#5170ce',
    950: '#000000',
  },
}
SCSS
$custom: #5170ce;
$custom-light: #8d98dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5170ce",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 206
  },
  "hsl": {
    "h": 225.12,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.56879,
    "c": 0.14899,
    "h": 267.8
  },
  "luminance": 0.17794
}

Semantic roles & 50–950 ramp

primary
#5170CE
secondary
#D7CAA4
accent
#BA48DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5170CE

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

Preview Lab → · Contrast checker → · Palette generator →

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