#5170AF#5170AF

#5170AF is a mid, moderate blue. Relative luminance 0.164; OKLCH L 55.0% C 0.105 H 263.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5170AF
RGBrgb(81, 112, 175)
HSLhsl(220, 37%, 50%)
HSVhsv(220, 54%, 69%)
CMYKcmyk(53.7%, 36%, 0%, 31.4%)
CIE-LABlab(47.54, 7.42, -37.00)
CIE-LCHlch(47.54, 37.73, 281.35°)
OKLaboklab(55.01% -0.012 -0.1045)
OKLCHoklch(55.01% 0.105 263.4)
XYZxyz(16.9228, 16.4316, 42.8290)
Luminance0.1643 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170AF #AF9051
analogous
#519FAF #5170AF #6151AF
triadic
#5170AF #AF5170 #70AF51
tetradic
#5170AF #AF519F #AF9051 #51AF61
square
#5170AF #AF519F #AF9051 #51AF61
split-complementary
#5170AF #AF6151 #9FAF51
monochromatic
#2A3A5C #3D5585 #5170AF #7B92C2 #A5B5D6

Accessibility & contrast

On white

4.90
#5170AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5170AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5170AF
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170AF#FFFFFF#000000##FFFFFF
##5170AF1.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)
#5775B2
Deuteranopia (green-blind)
#4C6DAE
Tritanopia (blue-blind)
#207E87
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5170af;
/* rgb */ color: rgb(81, 112, 175);
/* oklch */ color: oklch(55.0% 0.105 263.4);
Tailwind
colors: {
  custom: {
    50: '#8898c7',
    500: '#5170af',
    950: '#000000',
  },
}
SCSS
$custom: #5170af;
$custom-light: #8898c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5170af",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 175
  },
  "hsl": {
    "h": 220.213,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55009,
    "c": 0.10517,
    "h": 263.4
  },
  "luminance": 0.16433
}

Semantic roles & 50–950 ramp

primary
#5170AF
secondary
#C3B599
accent
#A75BCD
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0D13
muted
#7D7E82

Preview Lab

Preview with #5170AF

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

Preview Lab → · Contrast checker → · Palette generator →

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