#5172B0#5172B0

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

Color values

HEX#5172B0
RGBrgb(81, 114, 176)
HSLhsl(219, 38%, 50%)
HSVhsv(219, 54%, 69%)
CMYKcmyk(54%, 35.2%, 0%, 31%)
CIE-LABlab(48.16, 6.52, -36.60)
CIE-LCHlch(48.16, 37.18, 280.11°)
OKLaboklab(55.51% -0.0141 -0.1033)
OKLCHoklch(55.51% 0.104 262.2)
XYZxyz(17.2445, 16.9173, 43.4225)
Luminance0.1692 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172B0 #B08F51
analogous
#51A1B0 #5172B0 #6051B0
triadic
#5172B0 #B05172 #72B051
tetradic
#5172B0 #B051A1 #B08F51 #51B060
square
#5172B0 #B051A1 #B08F51 #51B060
split-complementary
#5172B0 #B06051 #A1B051
monochromatic
#2A3C5D #3D5787 #5172B0 #7B94C3 #A5B6D6

Accessibility & contrast

On white

4.79
#5172B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5172B0
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172B0#FFFFFF#000000##FFFFFF
##5172B01.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5977B3
Deuteranopia (green-blind)
#4E6EAF
Tritanopia (blue-blind)
#1E8089
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5172b0;
/* rgb */ color: rgb(81, 114, 176);
/* oklch */ color: oklch(55.5% 0.104 262.2);
Tailwind
colors: {
  custom: {
    50: '#889ac8',
    500: '#5172b0',
    950: '#000000',
  },
}
SCSS
$custom: #5172b0;
$custom-light: #889ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5172b0",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 176
  },
  "hsl": {
    "h": 219.158,
    "s": 37.549,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55507,
    "c": 0.10428,
    "h": 262.2
  },
  "luminance": 0.16919
}

Semantic roles & 50–950 ramp

primary
#5172B0
secondary
#C4B599
accent
#A55ACE
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #5172B0

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

Preview Lab → · Contrast checker → · Palette generator →

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