#5173AF#5173AF

#5173AF is a mid, moderate blue. Relative luminance 0.171; OKLCH L 55.7% C 0.102 H 261.2°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5173AF
RGBrgb(81, 115, 175)
HSLhsl(218, 37%, 50%)
HSVhsv(218, 54%, 69%)
CMYKcmyk(53.7%, 34.3%, 0%, 31.4%)
CIE-LABlab(48.39, 5.59, -35.65)
CIE-LCHlch(48.39, 36.08, 278.91°)
OKLaboklab(55.67% -0.0156 -0.1005)
OKLCHoklch(55.67% 0.102 261.2)
XYZxyz(17.2593, 17.1047, 42.9412)
Luminance0.1711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173AF #AF8D51
analogous
#51A2AF #5173AF #5E51AF
triadic
#5173AF #AF5173 #73AF51
tetradic
#5173AF #AF51A2 #AF8D51 #51AF5E
square
#5173AF #AF51A2 #AF8D51 #51AF5E
split-complementary
#5173AF #AF5E51 #A2AF51
monochromatic
#2A3C5C #3D5785 #5173AF #7B95C2 #A5B6D6

Accessibility & contrast

On white

4.75
#5173AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#5173AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5173AF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173AF#FFFFFF#000000##FFFFFF
##5173AF1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B78B1
Deuteranopia (green-blind)
#506FAE
Tritanopia (blue-blind)
#1F8089
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5173af;
/* rgb */ color: rgb(81, 115, 175);
/* oklch */ color: oklch(55.7% 0.102 261.2);
Tailwind
colors: {
  custom: {
    50: '#889bc7',
    500: '#5173af',
    950: '#000000',
  },
}
SCSS
$custom: #5173af;
$custom-light: #889bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5173af",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 175
  },
  "hsl": {
    "h": 218.298,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55674,
    "c": 0.10174,
    "h": 261.2
  },
  "luminance": 0.17106
}

Semantic roles & 50–950 ramp

primary
#5173AF
secondary
#C3B499
accent
#A45BCD
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #5173AF

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

Preview Lab → · Contrast checker → · Palette generator →

#5173AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva