#5172BC#5172BC

#5172BC is a mid, vivid blue. Relative luminance 0.174; OKLCH L 56.2% C 0.121 H 264.7°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5172BC
RGBrgb(81, 114, 188)
HSLhsl(221, 44%, 53%)
HSVhsv(221, 57%, 74%)
CMYKcmyk(56.9%, 39.4%, 0%, 26.3%)
CIE-LABlab(48.78, 10.48, -42.57)
CIE-LCHlch(48.78, 43.84, 283.83°)
OKLaboklab(56.19% -0.0113 -0.1207)
OKLCHoklch(56.19% 0.121 264.7)
XYZxyz(18.4847, 17.4133, 49.9542)
Luminance0.1741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172BC #BC9B51
analogous
#51A8BC #5172BC #6551BC
triadic
#5172BC #BC5172 #72BC51
tetradic
#5172BC #BC51A8 #BC9B51 #51BC65
square
#5172BC #BC51A8 #BC9B51 #51BC65
split-complementary
#5172BC #BC6551 #A8BC51
monochromatic
#293D6A #3A5696 #5172BC #7D96CD #A9BADE

Accessibility & contrast

On white

4.68
#5172BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#5172BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5172BC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172BC#FFFFFF#000000##FFFFFF
##5172BC1.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5379BF
Deuteranopia (green-blind)
#466FBA
Tritanopia (blue-blind)
#02828E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5172bc;
/* rgb */ color: rgb(81, 114, 188);
/* oklch */ color: oklch(56.2% 0.121 264.7);
Tailwind
colors: {
  custom: {
    50: '#8a9ad0',
    500: '#5172bc',
    950: '#000000',
  },
}
SCSS
$custom: #5172bc;
$custom-light: #8a9ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5172bc",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 188
  },
  "hsl": {
    "h": 221.495,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56191,
    "c": 0.12127,
    "h": 264.7
  },
  "luminance": 0.17415
}

Semantic roles & 50–950 ramp

primary
#5172BC
secondary
#CCBD9D
accent
#AD54D4
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5172BC

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

Preview Lab → · Contrast checker → · Palette generator →

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