#5174CD#5174CD

#5174CD is a mid, vivid blue. Relative luminance 0.186; OKLCH L 57.6% C 0.143 H 265.9°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5174CD
RGBrgb(81, 116, 205)
HSLhsl(223, 55%, 56%)
HSVhsv(223, 60%, 80%)
CMYKcmyk(60.5%, 43.4%, 0%, 19.6%)
CIE-LABlab(50.27, 14.96, -49.94)
CIE-LCHlch(50.27, 52.13, 286.67°)
OKLaboklab(57.65% -0.0101 -0.1423)
OKLCHoklch(57.65% 0.143 265.9)
XYZxyz(20.6544, 18.6461, 60.2564)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174CD #CDAA51
analogous
#51B2CD #5174CD #6C51CD
triadic
#5174CD #CD5174 #74CD51
tetradic
#5174CD #CD51B2 #CDAA51 #51CD6C
square
#5174CD #CD51B2 #CDAA51 #51CD6C
split-complementary
#5174CD #CD6C51 #B2CD51
monochromatic
#253E7F #3255AF #5174CD #819ADB #B0C0E8

Accessibility & contrast

On white

4.44
#5174CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#5174CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174CD
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174CD#FFFFFF#000000##000000
##5174CD1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7ED0
Deuteranopia (green-blind)
#3972CB
Tritanopia (blue-blind)
#008896
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5174cd;
/* rgb */ color: rgb(81, 116, 205);
/* oklch */ color: oklch(57.6% 0.143 265.9);
Tailwind
colors: {
  custom: {
    50: '#8c9bdd',
    500: '#5174cd',
    950: '#000000',
  },
}
SCSS
$custom: #5174cd;
$custom-light: #8c9bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5174cd",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 205
  },
  "hsl": {
    "h": 223.065,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.57648,
    "c": 0.14269,
    "h": 265.9
  },
  "luminance": 0.18648
}

Semantic roles & 50–950 ramp

primary
#5174CD
secondary
#D7C8A3
accent
#B449DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5174CD

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

Preview Lab → · Contrast checker → · Palette generator →

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