#5174AE#5174AE

#5174AE is a mid, moderate blue. Relative luminance 0.173; OKLCH L 55.8% C 0.099 H 260.1°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#5174AE
RGBrgb(81, 116, 174)
HSLhsl(217, 36%, 50%)
HSVhsv(217, 53%, 68%)
CMYKcmyk(53.4%, 33.3%, 0%, 31.8%)
CIE-LABlab(48.63, 4.66, -34.69)
CIE-LCHlch(48.63, 35.00, 277.64°)
OKLaboklab(55.84% -0.017 -0.0977)
OKLCHoklch(55.84% 0.099 260.1)
XYZxyz(17.2761, 17.2948, 42.4640)
Luminance0.1730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174AE #AE8B51
analogous
#51A3AE #5174AE #5C51AE
triadic
#5174AE #AE5174 #74AE51
tetradic
#5174AE #AE51A3 #AE8B51 #51AE5C
square
#5174AE #AE51A3 #AE8B51 #51AE5C
split-complementary
#5174AE #AE5C51 #A3AE51
monochromatic
#2A3C5A #3E5884 #5174AE #7B95C1 #A5B7D5

Accessibility & contrast

On white

4.71
#5174AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#5174AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5174AE
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174AE#FFFFFF#000000##FFFFFF
##5174AE1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D78B0
Deuteranopia (green-blind)
#5270AD
Tritanopia (blue-blind)
#208189
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5174ae;
/* rgb */ color: rgb(81, 116, 174);
/* oklch */ color: oklch(55.8% 0.099 260.1);
Tailwind
colors: {
  custom: {
    50: '#889bc6',
    500: '#5174ae',
    950: '#000000',
  },
}
SCSS
$custom: #5174ae;
$custom-light: #889bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5174ae",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 174
  },
  "hsl": {
    "h": 217.419,
    "s": 36.471,
    "l": 50
  },
  "oklch": {
    "l": 0.55843,
    "c": 0.09923,
    "h": 260.1
  },
  "luminance": 0.17296
}

Semantic roles & 50–950 ramp

primary
#5174AE
secondary
#C2B399
accent
#A25BCC
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #5174AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5174AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva