#5170AA#5170AA

#5170AA is a mid, moderate blue. Relative luminance 0.162; OKLCH L 54.7% C 0.098 H 262.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5170AA
RGBrgb(81, 112, 170)
HSLhsl(219, 35%, 49%)
HSVhsv(219, 52%, 67%)
CMYKcmyk(52.4%, 34.1%, 0%, 33.3%)
CIE-LABlab(47.29, 5.80, -34.47)
CIE-LCHlch(47.29, 34.96, 279.56°)
OKLaboklab(54.73% -0.0133 -0.0971)
OKLCHoklch(54.73% 0.098 262.2)
XYZxyz(16.4408, 16.2388, 40.2905)
Luminance0.1624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170AA #AA8B51
analogous
#519DAA #5170AA #5F51AA
triadic
#5170AA #AA5170 #70AA51
tetradic
#5170AA #AA519D #AA8B51 #51AA5F
square
#5170AA #AA519D #AA8B51 #51AA5F
split-complementary
#5170AA #AA5F51 #9DAA51
monochromatic
#2A3957 #3D5581 #5170AA #7991BF #A2B3D3

Accessibility & contrast

On white

4.94
#5170AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#5170AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5170AA#FFFFFF#000000##FFFFFF
##5170AA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5975AC
Deuteranopia (green-blind)
#4F6CA9
Tritanopia (blue-blind)
#267D85
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5170aa;
/* rgb */ color: rgb(81, 112, 170);
/* oklch */ color: oklch(54.7% 0.098 262.2);
Tailwind
colors: {
  custom: {
    50: '#8798c3',
    500: '#5170aa',
    950: '#000000',
  },
}
SCSS
$custom: #5170aa;
$custom-light: #8798c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5170aa",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 170
  },
  "hsl": {
    "h": 219.101,
    "s": 35.458,
    "l": 49.216
  },
  "oklch": {
    "l": 0.54733,
    "c": 0.09805,
    "h": 262.2
  },
  "luminance": 0.1624
}

Semantic roles & 50–950 ramp

primary
#5170AA
secondary
#C0B297
accent
#A55CCB
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0D12
muted
#7D7E81

Preview Lab

Preview with #5170AA

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

Preview Lab → · Contrast checker → · Palette generator →

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