#5174CE#5174CE

#5174CE is a mid, vivid blue. Relative luminance 0.187; OKLCH L 57.7% C 0.144 H 266.0°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5174CE
RGBrgb(81, 116, 206)
HSLhsl(223, 56%, 56%)
HSVhsv(223, 61%, 81%)
CMYKcmyk(60.7%, 43.7%, 0%, 19.2%)
CIE-LABlab(50.33, 15.29, -50.42)
CIE-LCHlch(50.33, 52.69, 286.87°)
OKLaboklab(57.71% -0.01 -0.1437)
OKLCHoklch(57.71% 0.144 266)
XYZxyz(20.7755, 18.6946, 60.8941)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174CE #CEAB51
analogous
#51B3CE #5174CE #6D51CE
triadic
#5174CE #CE5174 #74CE51
tetradic
#5174CE #CE51B3 #CEAB51 #51CE6D
square
#5174CE #CE51B3 #CEAB51 #51CE6D
split-complementary
#5174CE #CE6D51 #B3CE51
monochromatic
#243E80 #3255B0 #5174CE #819ADB #B1C0E9

Accessibility & contrast

On white

4.43
#5174CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#5174CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174CE
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174CE#FFFFFF#000000##000000
##5174CE1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7ED1
Deuteranopia (green-blind)
#3872CC
Tritanopia (blue-blind)
#008897
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5174ce;
/* rgb */ color: rgb(81, 116, 206);
/* oklch */ color: oklch(57.7% 0.144 266.0);
Tailwind
colors: {
  custom: {
    50: '#8c9bdd',
    500: '#5174ce',
    950: '#000000',
  },
}
SCSS
$custom: #5174ce;
$custom-light: #8c9bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5174ce",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 206
  },
  "hsl": {
    "h": 223.2,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5771,
    "c": 0.14408,
    "h": 266
  },
  "luminance": 0.18696
}

Semantic roles & 50–950 ramp

primary
#5174CE
secondary
#D7C9A4
accent
#B548DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5174CE

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

Preview Lab → · Contrast checker → · Palette generator →

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