#5173CB#5173CB

#5173CB is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.3% C 0.141 H 266.2°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5173CB
RGBrgb(81, 115, 203)
HSLhsl(223, 54%, 56%)
HSVhsv(223, 60%, 80%)
CMYKcmyk(60.1%, 43.3%, 0%, 20.4%)
CIE-LABlab(49.88, 14.90, -49.42)
CIE-LCHlch(49.88, 51.62, 286.77°)
OKLaboklab(57.31% -0.0094 -0.1408)
OKLCHoklch(57.31% 0.141 266.2)
XYZxyz(20.2999, 18.3209, 58.9549)
Luminance0.1832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173CB #CBA951
analogous
#51B0CB #5173CB #6C51CB
triadic
#5173CB #CB5173 #73CB51
tetradic
#5173CB #CB51B0 #CBA951 #51CB6C
square
#5173CB #CB51B0 #CBA951 #51CB6C
split-complementary
#5173CB #CB6C51 #B0CB51
monochromatic
#253D7C #3355AC #5173CB #8099D9 #AFBFE7

Accessibility & contrast

On white

4.50
#5173CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#5173CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173CB
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173CB#FFFFFF#000000##000000
##5173CB1.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B7DCE
Deuteranopia (green-blind)
#3A71C9
Tritanopia (blue-blind)
#008795
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5173cb;
/* rgb */ color: rgb(81, 115, 203);
/* oklch */ color: oklch(57.3% 0.141 266.2);
Tailwind
colors: {
  custom: {
    50: '#8c9adb',
    500: '#5173cb',
    950: '#000000',
  },
}
SCSS
$custom: #5173cb;
$custom-light: #8c9adb;
$custom-dark: #000000;
JSON
{
  "hex": "#5173cb",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 203
  },
  "hsl": {
    "h": 223.279,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57313,
    "c": 0.14113,
    "h": 266.2
  },
  "luminance": 0.18323
}

Semantic roles & 50–950 ramp

primary
#5173CB
secondary
#D5C7A3
accent
#B44ADD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5173CB

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

Preview Lab → · Contrast checker → · Palette generator →

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