#5174B2#5174B2

#5174B2 is a mid, moderate blue. Relative luminance 0.175; OKLCH L 56.1% C 0.105 H 261.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5174B2
RGBrgb(81, 116, 178)
HSLhsl(218, 39%, 51%)
HSVhsv(218, 54%, 70%)
CMYKcmyk(54.5%, 34.8%, 0%, 30.2%)
CIE-LABlab(48.83, 5.95, -36.71)
CIE-LCHlch(48.83, 37.19, 279.21°)
OKLaboklab(56.06% -0.016 -0.1036)
OKLCHoklch(56.06% 0.105 261.2)
XYZxyz(17.6719, 17.4531, 44.5484)
Luminance0.1745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174B2 #B28F51
analogous
#51A4B2 #5174B2 #5F51B2
triadic
#5174B2 #B25174 #74B251
tetradic
#5174B2 #B251A4 #B28F51 #51B25F
square
#5174B2 #B251A4 #B28F51 #51B25F
split-complementary
#5174B2 #B25F51 #A4B251
monochromatic
#2A3D5F #3D5889 #5174B2 #7B96C5 #A6B8D8

Accessibility & contrast

On white

4.68
#5174B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#5174B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5174B2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174B2#FFFFFF#000000##FFFFFF
##5174B21.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B79B5
Deuteranopia (green-blind)
#4F70B1
Tritanopia (blue-blind)
#1A828B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5174b2;
/* rgb */ color: rgb(81, 116, 178);
/* oklch */ color: oklch(56.1% 0.105 261.2);
Tailwind
colors: {
  custom: {
    50: '#889bc9',
    500: '#5174b2',
    950: '#000000',
  },
}
SCSS
$custom: #5174b2;
$custom-light: #889bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#5174b2",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 178
  },
  "hsl": {
    "h": 218.351,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.56061,
    "c": 0.10484,
    "h": 261.2
  },
  "luminance": 0.17454
}

Semantic roles & 50–950 ramp

primary
#5174B2
secondary
#C5B59A
accent
#A459CF
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #5174B2

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

Preview Lab → · Contrast checker → · Palette generator →

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