#5171BD#5171BD

#5171BD is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.0% C 0.124 H 265.4°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5171BD
RGBrgb(81, 113, 189)
HSLhsl(222, 45%, 53%)
HSVhsv(222, 57%, 74%)
CMYKcmyk(57.1%, 40.2%, 0%, 25.9%)
CIE-LABlab(48.55, 11.43, -43.50)
CIE-LCHlch(48.55, 44.98, 284.72°)
OKLaboklab(56.03% -0.01 -0.1235)
OKLCHoklch(56.03% 0.124 265.4)
XYZxyz(18.4807, 17.2322, 50.4865)
Luminance0.1723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171BD #BD9D51
analogous
#51A7BD #5171BD #6751BD
triadic
#5171BD #BD5171 #71BD51
tetradic
#5171BD #BD51A7 #BD9D51 #51BD67
square
#5171BD #BD51A7 #BD9D51 #51BD67
split-complementary
#5171BD #BD6751 #A7BD51
monochromatic
#293C6B #395597 #5171BD #7D95CE #AAB9DF

Accessibility & contrast

On white

4.72
#5171BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#5171BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5171BD
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171BD#FFFFFF#000000##FFFFFF
##5171BD1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5179C0
Deuteranopia (green-blind)
#436FBB
Tritanopia (blue-blind)
#00828E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5171bd;
/* rgb */ color: rgb(81, 113, 189);
/* oklch */ color: oklch(56.0% 0.124 265.4);
Tailwind
colors: {
  custom: {
    50: '#8a99d1',
    500: '#5171bd',
    950: '#000000',
  },
}
SCSS
$custom: #5171bd;
$custom-light: #8a99d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5171bd",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 222.222,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56034,
    "c": 0.12389,
    "h": 265.4
  },
  "luminance": 0.17234
}

Semantic roles & 50–950 ramp

primary
#5171BD
secondary
#CCBE9E
accent
#AE53D5
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0D14
muted
#7D7E82

Preview Lab

Preview with #5171BD

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

Preview Lab → · Contrast checker → · Palette generator →

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