#5172BD#5172BD

#5172BD is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.3% C 0.123 H 264.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5172BD
RGBrgb(81, 114, 189)
HSLhsl(222, 45%, 53%)
HSVhsv(222, 57%, 74%)
CMYKcmyk(57.1%, 39.7%, 0%, 25.9%)
CIE-LABlab(48.83, 10.81, -43.06)
CIE-LCHlch(48.83, 44.40, 284.09°)
OKLaboklab(56.25% -0.0111 -0.1222)
OKLCHoklch(56.25% 0.123 264.8)
XYZxyz(18.5928, 17.4566, 50.5239)
Luminance0.1746 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172BD #BD9C51
analogous
#51A8BD #5172BD #6651BD
triadic
#5172BD #BD5172 #72BD51
tetradic
#5172BD #BD51A8 #BD9C51 #51BD66
square
#5172BD #BD51A8 #BD9C51 #51BD66
split-complementary
#5172BD #BD6651 #A8BD51
monochromatic
#293D6B #395697 #5172BD #7D96CE #AABADF

Accessibility & contrast

On white

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

On black

4.49
#5172BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5172BD#FFFFFF#000000##FFFFFF
##5172BD1.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5279C0
Deuteranopia (green-blind)
#456FBB
Tritanopia (blue-blind)
#00838E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5172bd;
/* rgb */ color: rgb(81, 114, 189);
/* oklch */ color: oklch(56.3% 0.123 264.8);
Tailwind
colors: {
  custom: {
    50: '#8a9ad1',
    500: '#5172bd',
    950: '#000000',
  },
}
SCSS
$custom: #5172bd;
$custom-light: #8a9ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#5172bd",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 189
  },
  "hsl": {
    "h": 221.667,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.5625,
    "c": 0.12268,
    "h": 264.8
  },
  "luminance": 0.17458
}

Semantic roles & 50–950 ramp

primary
#5172BD
secondary
#CCBE9E
accent
#AD53D5
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5172BD

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

Preview Lab → · Contrast checker → · Palette generator →

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