#5174CF#5174CF

#5174CF is a mid, vivid blue. Relative luminance 0.187; OKLCH L 57.8% C 0.145 H 266.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#5174CF
RGBrgb(81, 116, 207)
HSLhsl(223, 57%, 56%)
HSVhsv(223, 61%, 81%)
CMYKcmyk(60.9%, 44%, 0%, 18.8%)
CIE-LABlab(50.39, 15.63, -50.90)
CIE-LCHlch(50.39, 53.24, 287.07°)
OKLaboklab(57.77% -0.0098 -0.1451)
OKLCHoklch(57.77% 0.145 266.1)
XYZxyz(20.8974, 18.7433, 61.5360)
Luminance0.1875 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174CF #CFAC51
analogous
#51B3CF #5174CF #6D51CF
triadic
#5174CF #CF5174 #74CF51
tetradic
#5174CF #CF51B3 #CFAC51 #51CF6D
square
#5174CF #CF51B3 #CFAC51 #51CF6D
split-complementary
#5174CF #CF6D51 #B3CF51
monochromatic
#243E82 #3155B2 #5174CF #819ADC #B1C1E9

Accessibility & contrast

On white

4.42
#5174CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#5174CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174CF
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174CF#FFFFFF#000000##000000
##5174CF1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7ED2
Deuteranopia (green-blind)
#3773CD
Tritanopia (blue-blind)
#008997
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5174cf;
/* rgb */ color: rgb(81, 116, 207);
/* oklch */ color: oklch(57.8% 0.145 266.1);
Tailwind
colors: {
  custom: {
    50: '#8d9bde',
    500: '#5174cf',
    950: '#000000',
  },
}
SCSS
$custom: #5174cf;
$custom-light: #8d9bde;
$custom-dark: #000000;
JSON
{
  "hex": "#5174cf",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 207
  },
  "hsl": {
    "h": 223.333,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.57773,
    "c": 0.14547,
    "h": 266.1
  },
  "luminance": 0.18745
}

Semantic roles & 50–950 ramp

primary
#5174CF
secondary
#D8C9A4
accent
#B648E0
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5174CF

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

Preview Lab → · Contrast checker → · Palette generator →

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