#5173DF#5173DF

#5173DF is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.6% C 0.169 H 267.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5173DF
RGBrgb(81, 115, 223)
HSLhsl(226, 69%, 60%)
HSVhsv(226, 64%, 87%)
CMYKcmyk(63.7%, 48.4%, 0%, 12.5%)
CIE-LABlab(51.08, 21.72, -58.85)
CIE-LCHlch(51.08, 62.73, 290.25°)
OKLaboklab(58.61% -0.0065 -0.1685)
OKLCHoklch(58.61% 0.169 267.8)
XYZxyz(22.8388, 19.3364, 72.3265)
Luminance0.1934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173DF #DFBD51
analogous
#51BADF #5173DF #7651DF
triadic
#5173DF #DF5173 #73DF51
tetradic
#5173DF #DF51BA #DFBD51 #51DF76
square
#5173DF #DF51BA #DFBD51 #51DF76
split-complementary
#5173DF #DF7651 #BADF51
monochromatic
#1C3A99 #264ECD #5173DF #859DE9 #B8C6F2

Accessibility & contrast

On white

4.31
#5173DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5173DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173DF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173DF#FFFFFF#000000##000000
##5173DF1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A80E3
Deuteranopia (green-blind)
#1974DD
Tritanopia (blue-blind)
#008C9E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5173df;
/* rgb */ color: rgb(81, 115, 223);
/* oklch */ color: oklch(58.6% 0.169 267.8);
Tailwind
colors: {
  custom: {
    50: '#8f9aea',
    500: '#5173df',
    950: '#000000',
  },
}
SCSS
$custom: #5173df;
$custom-light: #8f9aea;
$custom-dark: #000000;
JSON
{
  "hex": "#5173df",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 223
  },
  "hsl": {
    "h": 225.634,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.58612,
    "c": 0.16866,
    "h": 267.8
  },
  "luminance": 0.19339
}

Semantic roles & 50–950 ramp

primary
#5173DF
secondary
#E1D4AA
accent
#C23CEC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5173DF

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

Preview Lab → · Contrast checker → · Palette generator →

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