#5174B8#5174B8

#5174B8 is a mid, moderate blue. Relative luminance 0.177; OKLCH L 56.4% C 0.113 H 262.7°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5174B8
RGBrgb(81, 116, 184)
HSLhsl(220, 42%, 52%)
HSVhsv(220, 56%, 72%)
CMYKcmyk(56%, 37%, 0%, 27.8%)
CIE-LABlab(49.13, 7.92, -39.70)
CIE-LCHlch(49.13, 40.48, 281.28°)
OKLaboklab(56.4% -0.0145 -0.1123)
OKLCHoklch(56.4% 0.113 262.7)
XYZxyz(18.2875, 17.6994, 47.7907)
Luminance0.1770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174B8 #B89551
analogous
#51A7B8 #5174B8 #6251B8
triadic
#5174B8 #B85174 #74B851
tetradic
#5174B8 #B851A7 #B89551 #51B862
square
#5174B8 #B851A7 #B89551 #51B862
split-complementary
#5174B8 #B86251 #A7B851
monochromatic
#293E65 #3B5891 #5174B8 #7C97CA #A8B9DB

Accessibility & contrast

On white

4.63
#5174B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#5174B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5174B8
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174B8#FFFFFF#000000##FFFFFF
##5174B81.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#587ABB
Deuteranopia (green-blind)
#4B70B7
Tritanopia (blue-blind)
#0E838D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5174b8;
/* rgb */ color: rgb(81, 116, 184);
/* oklch */ color: oklch(56.4% 0.113 262.7);
Tailwind
colors: {
  custom: {
    50: '#899bcd',
    500: '#5174b8',
    950: '#000000',
  },
}
SCSS
$custom: #5174b8;
$custom-light: #899bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#5174b8",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 184
  },
  "hsl": {
    "h": 219.612,
    "s": 42.041,
    "l": 51.961
  },
  "oklch": {
    "l": 0.56396,
    "c": 0.11327,
    "h": 262.7
  },
  "luminance": 0.17701
}

Semantic roles & 50–950 ramp

primary
#5174B8
secondary
#C9BA9C
accent
#A856D2
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #5174B8

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

Preview Lab → · Contrast checker → · Palette generator →

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