#5172BF#5172BF

#5172BF is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.4% C 0.126 H 265.1°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5172BF
RGBrgb(81, 114, 191)
HSLhsl(222, 46%, 53%)
HSVhsv(222, 58%, 75%)
CMYKcmyk(57.6%, 40.3%, 0%, 25.1%)
CIE-LABlab(48.94, 11.48, -44.04)
CIE-LCHlch(48.94, 45.51, 284.61°)
OKLaboklab(56.37% -0.0107 -0.1251)
OKLCHoklch(56.37% 0.126 265.1)
XYZxyz(18.8114, 17.5440, 51.6751)
Luminance0.1755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172BF #BF9E51
analogous
#51A9BF #5172BF #6751BF
triadic
#5172BF #BF5172 #72BF51
tetradic
#5172BF #BF51A9 #BF9E51 #51BF67
square
#5172BF #BF51A9 #BF9E51 #51BF67
split-complementary
#5172BF #BF6751 #A9BF51
monochromatic
#283D6D #39569A #5172BF #7E96CF #AABBE0

Accessibility & contrast

On white

4.66
#5172BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#5172BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5172BF
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172BF#FFFFFF#000000##FFFFFF
##5172BF1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#517AC2
Deuteranopia (green-blind)
#4370BD
Tritanopia (blue-blind)
#00838F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5172bf;
/* rgb */ color: rgb(81, 114, 191);
/* oklch */ color: oklch(56.4% 0.126 265.1);
Tailwind
colors: {
  custom: {
    50: '#8a9ad3',
    500: '#5172bf',
    950: '#000000',
  },
}
SCSS
$custom: #5172bf;
$custom-light: #8a9ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#5172bf",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 191
  },
  "hsl": {
    "h": 222,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56368,
    "c": 0.12551,
    "h": 265.1
  },
  "luminance": 0.17546
}

Semantic roles & 50–950 ramp

primary
#5172BF
secondary
#CEBF9E
accent
#AE52D6
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E14
muted
#7D7E83

Preview Lab

Preview with #5172BF

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

Preview Lab → · Contrast checker → · Palette generator →

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