#5171BC#5171BC

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

Color values

HEX#5171BC
RGBrgb(81, 113, 188)
HSLhsl(222, 44%, 53%)
HSVhsv(222, 57%, 74%)
CMYKcmyk(56.9%, 39.9%, 0%, 26.3%)
CIE-LABlab(48.50, 11.09, -43.01)
CIE-LCHlch(48.50, 44.42, 284.46°)
OKLaboklab(55.97% -0.0102 -0.122)
OKLCHoklch(55.97% 0.122 265.2)
XYZxyz(18.3725, 17.1890, 49.9168)
Luminance0.1719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171BC #BC9C51
analogous
#51A6BC #5171BC #6651BC
triadic
#5171BC #BC5171 #71BC51
tetradic
#5171BC #BC51A6 #BC9C51 #51BC66
square
#5171BC #BC51A6 #BC9C51 #51BC66
split-complementary
#5171BC #BC6651 #A6BC51
monochromatic
#293C6A #3A5596 #5171BC #7D95CD #A9B9DE

Accessibility & contrast

On white

4.73
#5171BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#5171BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5171BC
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171BC#FFFFFF#000000##FFFFFF
##5171BC1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5178BF
Deuteranopia (green-blind)
#446FBA
Tritanopia (blue-blind)
#02828D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5171bc;
/* rgb */ color: rgb(81, 113, 188);
/* oklch */ color: oklch(56.0% 0.122 265.2);
Tailwind
colors: {
  custom: {
    50: '#8a99d0',
    500: '#5171bc',
    950: '#000000',
  },
}
SCSS
$custom: #5171bc;
$custom-light: #8a99d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5171bc",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 222.056,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.55975,
    "c": 0.12247,
    "h": 265.2
  },
  "luminance": 0.1719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5171BC

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

Preview Lab → · Contrast checker → · Palette generator →

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