#5171BF#5171BF

#5171BF is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.2% C 0.127 H 265.7°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#5171BF
RGBrgb(81, 113, 191)
HSLhsl(223, 46%, 53%)
HSVhsv(223, 58%, 75%)
CMYKcmyk(57.6%, 40.8%, 0%, 25.1%)
CIE-LABlab(48.66, 12.09, -44.48)
CIE-LCHlch(48.66, 46.10, 285.21°)
OKLaboklab(56.15% -0.0095 -0.1264)
OKLCHoklch(56.15% 0.127 265.7)
XYZxyz(18.6992, 17.3197, 51.6378)
Luminance0.1732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171BF #BF9F51
analogous
#51A8BF #5171BF #6851BF
triadic
#5171BF #BF5171 #71BF51
tetradic
#5171BF #BF51A8 #BF9F51 #51BF68
square
#5171BF #BF51A8 #BF9F51 #51BF68
split-complementary
#5171BF #BF6851 #A8BF51
monochromatic
#283C6D #39559A #5171BF #7E96CF #AABAE0

Accessibility & contrast

On white

4.70
#5171BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#5171BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5171BF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171BF#FFFFFF#000000##FFFFFF
##5171BF1.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5079C2
Deuteranopia (green-blind)
#416FBD
Tritanopia (blue-blind)
#00828F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5171bf;
/* rgb */ color: rgb(81, 113, 191);
/* oklch */ color: oklch(56.2% 0.127 265.7);
Tailwind
colors: {
  custom: {
    50: '#8a99d3',
    500: '#5171bf',
    950: '#000000',
  },
}
SCSS
$custom: #5171bf;
$custom-light: #8a99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5171bf",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 191
  },
  "hsl": {
    "h": 222.545,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56154,
    "c": 0.12672,
    "h": 265.7
  },
  "luminance": 0.17321
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5171BF

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

Preview Lab → · Contrast checker → · Palette generator →

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