#5174D5#5174D5

#5174D5 is a mid, vivid blue. Relative luminance 0.190; OKLCH L 58.2% C 0.154 H 266.7°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5174D5
RGBrgb(81, 116, 213)
HSLhsl(224, 61%, 58%)
HSVhsv(224, 62%, 84%)
CMYKcmyk(62%, 45.5%, 0%, 16.5%)
CIE-LABlab(50.74, 17.68, -53.75)
CIE-LCHlch(50.74, 56.58, 288.21°)
OKLaboklab(58.16% -0.0088 -0.1535)
OKLCHoklch(58.16% 0.154 266.7)
XYZxyz(21.6449, 19.0423, 65.4728)
Luminance0.1904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174D5 #D5B251
analogous
#51B6D5 #5174D5 #7051D5
triadic
#5174D5 #D55174 #74D551
tetradic
#5174D5 #D551B6 #D5B251 #51D570
square
#5174D5 #D551B6 #D5B251 #51D570
split-complementary
#5174D5 #D57051 #B6D551
monochromatic
#213D8A #2D53BC #5174D5 #829BE1 #B4C3ED

Accessibility & contrast

On white

4.37
#5174D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5174D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174D5
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174D5#FFFFFF#000000##000000
##5174D51.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#457FD9
Deuteranopia (green-blind)
#2F73D3
Tritanopia (blue-blind)
#008A9A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5174d5;
/* rgb */ color: rgb(81, 116, 213);
/* oklch */ color: oklch(58.2% 0.154 266.7);
Tailwind
colors: {
  custom: {
    50: '#8e9be2',
    500: '#5174d5',
    950: '#000000',
  },
}
SCSS
$custom: #5174d5;
$custom-light: #8e9be2;
$custom-dark: #000000;
JSON
{
  "hex": "#5174d5",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 213
  },
  "hsl": {
    "h": 224.091,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.58156,
    "c": 0.15376,
    "h": 266.7
  },
  "luminance": 0.19044
}

Semantic roles & 50–950 ramp

primary
#5174D5
secondary
#DBCDA6
accent
#BA44E4
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5174D5

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

Preview Lab → · Contrast checker → · Palette generator →

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