#5170CB#5170CB

#5170CB is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.7% C 0.145 H 267.5°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#5170CB
RGBrgb(81, 112, 203)
HSLhsl(225, 54%, 56%)
HSVhsv(225, 60%, 80%)
CMYKcmyk(60.1%, 44.8%, 0%, 20.4%)
CIE-LABlab(49.07, 16.76, -50.72)
CIE-LCHlch(49.07, 53.42, 288.28°)
OKLaboklab(56.69% -0.0063 -0.1447)
OKLCHoklch(56.69% 0.145 267.5)
XYZxyz(19.9633, 17.6478, 58.8427)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170CB #CBAC51
analogous
#51ADCB #5170CB #6F51CB
triadic
#5170CB #CB5170 #70CB51
tetradic
#5170CB #CB51AD #CBAC51 #51CB6F
square
#5170CB #CB51AD #CBAC51 #51CB6F
split-complementary
#5170CB #CB6F51 #ADCB51
monochromatic
#253B7C #3352AC #5170CB #8097D9 #AFBDE7

Accessibility & contrast

On white

4.64
#5170CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#5170CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5170CB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170CB#FFFFFF#000000##FFFFFF
##5170CB1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#467ACE
Deuteranopia (green-blind)
#336FC9
Tritanopia (blue-blind)
#008493
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5170cb;
/* rgb */ color: rgb(81, 112, 203);
/* oklch */ color: oklch(56.7% 0.145 267.5);
Tailwind
colors: {
  custom: {
    50: '#8c98db',
    500: '#5170cb',
    950: '#000000',
  },
}
SCSS
$custom: #5170cb;
$custom-light: #8c98db;
$custom-dark: #000000;
JSON
{
  "hex": "#5170cb",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 203
  },
  "hsl": {
    "h": 224.754,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.56686,
    "c": 0.14482,
    "h": 267.5
  },
  "luminance": 0.17649
}

Semantic roles & 50–950 ramp

primary
#5170CB
secondary
#D5C8A3
accent
#B84ADD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5170CB

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

Preview Lab → · Contrast checker → · Palette generator →

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