#5170BF#5170BF

#5170BF is a mid, vivid blue. Relative luminance 0.171; OKLCH L 55.9% C 0.128 H 266.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5170BF
RGBrgb(81, 112, 191)
HSLhsl(223, 46%, 53%)
HSVhsv(223, 58%, 75%)
CMYKcmyk(57.6%, 41.4%, 0%, 25.1%)
CIE-LABlab(48.38, 12.71, -44.92)
CIE-LCHlch(48.38, 46.69, 285.80°)
OKLaboklab(55.94% -0.0084 -0.1277)
OKLCHoklch(55.94% 0.128 266.2)
XYZxyz(18.5883, 17.0978, 51.6008)
Luminance0.1710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170BF #BFA051
analogous
#51A7BF #5170BF #6951BF
triadic
#5170BF #BF5170 #70BF51
tetradic
#5170BF #BF51A7 #BFA051 #51BF69
square
#5170BF #BF51A7 #BFA051 #51BF69
split-complementary
#5170BF #BF6951 #A7BF51
monochromatic
#283C6D #39549A #5170BF #7E95CF #AABAE0

Accessibility & contrast

On white

4.75
#5170BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#5170BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5170BF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170BF#FFFFFF#000000##FFFFFF
##5170BF1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E78C2
Deuteranopia (green-blind)
#406EBD
Tritanopia (blue-blind)
#00818E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5170bf;
/* rgb */ color: rgb(81, 112, 191);
/* oklch */ color: oklch(55.9% 0.128 266.2);
Tailwind
colors: {
  custom: {
    50: '#8a98d3',
    500: '#5170bf',
    950: '#000000',
  },
}
SCSS
$custom: #5170bf;
$custom-light: #8a98d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5170bf",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 191
  },
  "hsl": {
    "h": 223.091,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5594,
    "c": 0.12794,
    "h": 266.2
  },
  "luminance": 0.17099
}

Semantic roles & 50–950 ramp

primary
#5170BF
secondary
#CEC09E
accent
#B152D6
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0D14
muted
#7D7E83

Preview Lab

Preview with #5170BF

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

Preview Lab → · Contrast checker → · Palette generator →

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