#5170A2#5170A2

#5170A2 is a mid, moderate blue. Relative luminance 0.159; OKLCH L 54.3% C 0.087 H 259.7°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5170A2
RGBrgb(81, 112, 162)
HSLhsl(217, 33%, 48%)
HSVhsv(217, 50%, 64%)
CMYKcmyk(50%, 30.9%, 0%, 36.5%)
CIE-LABlab(46.90, 3.25, -30.39)
CIE-LCHlch(46.90, 30.56, 276.10°)
OKLaboklab(54.31% -0.0155 -0.0853)
OKLCHoklch(54.31% 0.087 259.7)
XYZxyz(15.7069, 15.9452, 36.4255)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170A2 #A28351
analogous
#5198A2 #5170A2 #5B51A2
triadic
#5170A2 #A25170 #70A251
tetradic
#5170A2 #A25198 #A28351 #51A25B
square
#5170A2 #A25198 #A28351 #51A25B
split-complementary
#5170A2 #A25B51 #98A251
monochromatic
#283850 #3D5479 #5170A2 #7690BA #9FB1CF

Accessibility & contrast

On white

5.01
#5170A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5170A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5170A2
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170A2#FFFFFF#000000##FFFFFF
##5170A21.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D73A4
Deuteranopia (green-blind)
#536CA1
Tritanopia (blue-blind)
#2D7B82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5170a2;
/* rgb */ color: rgb(81, 112, 162);
/* oklch */ color: oklch(54.3% 0.087 259.7);
Tailwind
colors: {
  custom: {
    50: '#8698bd',
    500: '#5170a2',
    950: '#000000',
  },
}
SCSS
$custom: #5170a2;
$custom-light: #8698bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5170a2",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 162
  },
  "hsl": {
    "h": 217.037,
    "s": 33.333,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54309,
    "c": 0.0867,
    "h": 259.7
  },
  "luminance": 0.15946
}

Semantic roles & 50–950 ramp

primary
#5170A2
secondary
#BCAC93
accent
#A05EC9
background
#F8F9FB
surface
#F0F2F6
border
#CBCCD0
text
#0C0D12
muted
#7D7E81

Preview Lab

Preview with #5170A2

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

Preview Lab → · Contrast checker → · Palette generator →

#5170A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva