#5172A3#5172A3

#5172A3 is a mid, moderate blue. Relative luminance 0.164; OKLCH L 54.8% C 0.086 H 258.1°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5172A3
RGBrgb(81, 114, 163)
HSLhsl(216, 34%, 48%)
HSVhsv(216, 50%, 64%)
CMYKcmyk(50.3%, 30.1%, 0%, 36.1%)
CIE-LABlab(47.53, 2.35, -29.99)
CIE-LCHlch(47.53, 30.08, 274.48°)
OKLaboklab(54.81% -0.0178 -0.0841)
OKLCHoklch(54.81% 0.086 258.1)
XYZxyz(16.0193, 16.4272, 36.9699)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172A3 #A38251
analogous
#519BA3 #5172A3 #5951A3
triadic
#5172A3 #A35172 #72A351
tetradic
#5172A3 #A3519B #A38251 #51A359
square
#5172A3 #A3519B #A38251 #51A359
split-complementary
#5172A3 #A35951 #9BA351
monochromatic
#283951 #3D557A #5172A3 #7692BB #9FB2CF

Accessibility & contrast

On white

4.90
#5172A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5172A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5172A3
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172A3#FFFFFF#000000##FFFFFF
##5172A31.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F75A5
Deuteranopia (green-blind)
#556DA2
Tritanopia (blue-blind)
#2C7D83
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5172a3;
/* rgb */ color: rgb(81, 114, 163);
/* oklch */ color: oklch(54.8% 0.086 258.1);
Tailwind
colors: {
  custom: {
    50: '#879abe',
    500: '#5172a3',
    950: '#000000',
  },
}
SCSS
$custom: #5172a3;
$custom-light: #879abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5172a3",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 163
  },
  "hsl": {
    "h": 215.854,
    "s": 33.607,
    "l": 47.843
  },
  "oklch": {
    "l": 0.54814,
    "c": 0.08599,
    "h": 258.1
  },
  "luminance": 0.16428
}

Semantic roles & 50–950 ramp

primary
#5172A3
secondary
#BCAC93
accent
#9E5ECA
background
#F8F9FB
surface
#F0F2F7
border
#CBCCD0
text
#0C0E12
muted
#7D7E81

Preview Lab

Preview with #5172A3

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

Preview Lab → · Contrast checker → · Palette generator →

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