#5170BC#5170BC

#5170BC is a mid, vivid blue. Relative luminance 0.170; OKLCH L 55.8% C 0.124 H 265.8°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5170BC
RGBrgb(81, 112, 188)
HSLhsl(223, 44%, 53%)
HSVhsv(223, 57%, 74%)
CMYKcmyk(56.9%, 40.4%, 0%, 26.3%)
CIE-LABlab(48.22, 11.71, -43.45)
CIE-LCHlch(48.22, 45.01, 285.08°)
OKLaboklab(55.76% -0.0091 -0.1234)
OKLCHoklch(55.76% 0.124 265.8)
XYZxyz(18.2615, 16.9671, 49.8799)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170BC #BC9D51
analogous
#51A5BC #5170BC #6851BC
triadic
#5170BC #BC5170 #70BC51
tetradic
#5170BC #BC51A5 #BC9D51 #51BC68
square
#5170BC #BC51A5 #BC9D51 #51BC68
split-complementary
#5170BC #BC6851 #A5BC51
monochromatic
#293C6A #3A5496 #5170BC #7D94CD #A9B9DE

Accessibility & contrast

On white

4.78
#5170BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5170BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5170BC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170BC#FFFFFF#000000##FFFFFF
##5170BC1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5078BF
Deuteranopia (green-blind)
#426EBA
Tritanopia (blue-blind)
#03818D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5170bc;
/* rgb */ color: rgb(81, 112, 188);
/* oklch */ color: oklch(55.8% 0.124 265.8);
Tailwind
colors: {
  custom: {
    50: '#8a98d0',
    500: '#5170bc',
    950: '#000000',
  },
}
SCSS
$custom: #5170bc;
$custom-light: #8a98d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5170bc",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 188
  },
  "hsl": {
    "h": 222.617,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5576,
    "c": 0.12369,
    "h": 265.8
  },
  "luminance": 0.16969
}

Semantic roles & 50–950 ramp

primary
#5170BC
secondary
#CCBE9D
accent
#AF54D4
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #5170BC

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

Preview Lab → · Contrast checker → · Palette generator →

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