#5174AF#5174AF

#5174AF is a mid, moderate blue. Relative luminance 0.173; OKLCH L 55.9% C 0.101 H 260.4°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#5174AF
RGBrgb(81, 116, 175)
HSLhsl(218, 37%, 50%)
HSVhsv(218, 54%, 69%)
CMYKcmyk(53.7%, 33.7%, 0%, 31.4%)
CIE-LABlab(48.68, 4.98, -35.20)
CIE-LCHlch(48.68, 35.55, 278.05°)
OKLaboklab(55.9% -0.0168 -0.0992)
OKLCHoklch(55.9% 0.101 260.4)
XYZxyz(17.3740, 17.3340, 42.9794)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174AF #AF8C51
analogous
#51A3AF #5174AF #5D51AF
triadic
#5174AF #AF5174 #74AF51
tetradic
#5174AF #AF51A3 #AF8C51 #51AF5D
square
#5174AF #AF51A3 #AF8C51 #51AF5D
split-complementary
#5174AF #AF5D51 #A3AF51
monochromatic
#2A3C5C #3D5885 #5174AF #7B95C2 #A5B7D6

Accessibility & contrast

On white

4.70
#5174AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#5174AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5174AF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174AF#FFFFFF#000000##FFFFFF
##5174AF1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D78B1
Deuteranopia (green-blind)
#5170AE
Tritanopia (blue-blind)
#1E8189
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5174af;
/* rgb */ color: rgb(81, 116, 175);
/* oklch */ color: oklch(55.9% 0.101 260.4);
Tailwind
colors: {
  custom: {
    50: '#889bc7',
    500: '#5174af',
    950: '#000000',
  },
}
SCSS
$custom: #5174af;
$custom-light: #889bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#5174af",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 175
  },
  "hsl": {
    "h": 217.66,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.55897,
    "c": 0.10063,
    "h": 260.4
  },
  "luminance": 0.17335
}

Semantic roles & 50–950 ramp

primary
#5174AF
secondary
#C3B399
accent
#A25BCD
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #5174AF

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

Preview Lab → · Contrast checker → · Palette generator →

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