#5172AF#5172AF

#5172AF is a mid, moderate blue. Relative luminance 0.169; OKLCH L 55.5% C 0.103 H 262.0°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5172AF
RGBrgb(81, 114, 175)
HSLhsl(219, 37%, 50%)
HSVhsv(219, 54%, 69%)
CMYKcmyk(53.7%, 34.9%, 0%, 31.4%)
CIE-LABlab(48.11, 6.20, -36.10)
CIE-LCHlch(48.11, 36.63, 279.74°)
OKLaboklab(55.45% -0.0144 -0.1018)
OKLCHoklch(55.45% 0.103 262)
XYZxyz(17.1459, 16.8778, 42.9034)
Luminance0.1688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172AF #AF8E51
analogous
#51A1AF #5172AF #5F51AF
triadic
#5172AF #AF5172 #72AF51
tetradic
#5172AF #AF51A1 #AF8E51 #51AF5F
square
#5172AF #AF51A1 #AF8E51 #51AF5F
split-complementary
#5172AF #AF5F51 #A1AF51
monochromatic
#2A3B5C #3D5785 #5172AF #7B94C2 #A5B6D6

Accessibility & contrast

On white

4.80
#5172AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5172AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5172AF
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172AF#FFFFFF#000000##FFFFFF
##5172AF1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A77B2
Deuteranopia (green-blind)
#4F6EAE
Tritanopia (blue-blind)
#1F7F88
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5172af;
/* rgb */ color: rgb(81, 114, 175);
/* oklch */ color: oklch(55.5% 0.103 262.0);
Tailwind
colors: {
  custom: {
    50: '#889ac7',
    500: '#5172af',
    950: '#000000',
  },
}
SCSS
$custom: #5172af;
$custom-light: #889ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#5172af",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 175
  },
  "hsl": {
    "h": 218.936,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55452,
    "c": 0.10286,
    "h": 262
  },
  "luminance": 0.16879
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5172AF

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

Preview Lab → · Contrast checker → · Palette generator →

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