#5173DD#5173DD

#5173DD is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.5% C 0.166 H 267.7°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5173DD
RGBrgb(81, 115, 221)
HSLhsl(225, 67%, 59%)
HSVhsv(225, 63%, 87%)
CMYKcmyk(63.3%, 48%, 0%, 13.3%)
CIE-LABlab(50.95, 21.03, -57.92)
CIE-LCHlch(50.95, 61.62, 289.96°)
OKLaboklab(58.48% -0.0067 -0.1658)
OKLCHoklch(58.48% 0.166 267.7)
XYZxyz(22.5708, 19.2292, 70.9148)
Luminance0.1923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173DD #DDBB51
analogous
#51B9DD #5173DD #7551DD
triadic
#5173DD #DD5173 #73DD51
tetradic
#5173DD #DD51B9 #DDBB51 #51DD75
square
#5173DD #DD51B9 #DDBB51 #51DD75
split-complementary
#5173DD #DD7551 #B9DD51
monochromatic
#1D3B96 #274FC9 #5173DD #849CE7 #B7C5F1

Accessibility & contrast

On white

4.33
#5173DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#5173DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173DD
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173DD#FFFFFF#000000##000000
##5173DD1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C80E1
Deuteranopia (green-blind)
#1E73DB
Tritanopia (blue-blind)
#008B9D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5173dd;
/* rgb */ color: rgb(81, 115, 221);
/* oklch */ color: oklch(58.5% 0.166 267.7);
Tailwind
colors: {
  custom: {
    50: '#8f9ae8',
    500: '#5173dd',
    950: '#000000',
  },
}
SCSS
$custom: #5173dd;
$custom-light: #8f9ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#5173dd",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 221
  },
  "hsl": {
    "h": 225.429,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.58478,
    "c": 0.16595,
    "h": 267.7
  },
  "luminance": 0.19231
}

Semantic roles & 50–950 ramp

primary
#5173DD
secondary
#E0D3AA
accent
#C03EEA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5173DD

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

Preview Lab → · Contrast checker → · Palette generator →

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