#5173DC#5173DC

#5173DC is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.4% C 0.165 H 267.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5173DC
RGBrgb(81, 115, 220)
HSLhsl(225, 67%, 59%)
HSVhsv(225, 63%, 86%)
CMYKcmyk(63.2%, 47.7%, 0%, 13.7%)
CIE-LABlab(50.89, 20.69, -57.46)
CIE-LCHlch(50.89, 61.07, 289.80°)
OKLaboklab(58.41% -0.0069 -0.1644)
OKLCHoklch(58.41% 0.165 267.6)
XYZxyz(22.4379, 19.1761, 70.2152)
Luminance0.1918 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173DC #DCBA51
analogous
#51B8DC #5173DC #7551DC
triadic
#5173DC #DC5173 #73DC51
tetradic
#5173DC #DC51B8 #DCBA51 #51DC75
square
#5173DC #DC51B8 #DCBA51 #51DC75
split-complementary
#5173DC #DC7551 #B8DC51
monochromatic
#1E3B95 #284FC8 #5173DC #849CE6 #B7C5F0

Accessibility & contrast

On white

4.34
#5173DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#5173DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173DC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173DC#FFFFFF#000000##000000
##5173DC1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D80E0
Deuteranopia (green-blind)
#2073DA
Tritanopia (blue-blind)
#008B9D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5173dc;
/* rgb */ color: rgb(81, 115, 220);
/* oklch */ color: oklch(58.4% 0.165 267.6);
Tailwind
colors: {
  custom: {
    50: '#8f9ae7',
    500: '#5173dc',
    950: '#000000',
  },
}
SCSS
$custom: #5173dc;
$custom-light: #8f9ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#5173dc",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 220
  },
  "hsl": {
    "h": 225.324,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.58411,
    "c": 0.16458,
    "h": 267.6
  },
  "luminance": 0.19178
}

Semantic roles & 50–950 ramp

primary
#5173DC
secondary
#E0D2A9
accent
#C03EE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5173DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5173DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva