#5173CC#5173CC

#5173CC is a mid, vivid blue. Relative luminance 0.184; OKLCH L 57.4% C 0.143 H 266.3°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#5173CC
RGBrgb(81, 115, 204)
HSLhsl(223, 55%, 56%)
HSVhsv(223, 60%, 80%)
CMYKcmyk(60.3%, 43.6%, 0%, 20%)
CIE-LABlab(49.94, 15.23, -49.90)
CIE-LCHlch(49.94, 52.17, 286.98°)
OKLaboklab(57.38% -0.0093 -0.1422)
OKLCHoklch(57.38% 0.143 266.3)
XYZxyz(20.4194, 18.3687, 59.5845)
Luminance0.1837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173CC #CCAA51
analogous
#51B0CC #5173CC #6C51CC
triadic
#5173CC #CC5173 #73CC51
tetradic
#5173CC #CC51B0 #CCAA51 #51CC6C
square
#5173CC #CC51B0 #CCAA51 #51CC6C
split-complementary
#5173CC #CC6C51 #B0CC51
monochromatic
#253D7E #3355AD #5173CC #8099DA #B0BFE8

Accessibility & contrast

On white

4.49
#5173CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#5173CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173CC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173CC#FFFFFF#000000##000000
##5173CC1.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7DCF
Deuteranopia (green-blind)
#3872CA
Tritanopia (blue-blind)
#008795
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5173cc;
/* rgb */ color: rgb(81, 115, 204);
/* oklch */ color: oklch(57.4% 0.143 266.3);
Tailwind
colors: {
  custom: {
    50: '#8c9adc',
    500: '#5173cc',
    950: '#000000',
  },
}
SCSS
$custom: #5173cc;
$custom-light: #8c9adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5173cc",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 204
  },
  "hsl": {
    "h": 223.415,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.57375,
    "c": 0.14252,
    "h": 266.3
  },
  "luminance": 0.1837
}

Semantic roles & 50–950 ramp

primary
#5173CC
secondary
#D6C8A3
accent
#B54ADE
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5173CC

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

Preview Lab → · Contrast checker → · Palette generator →

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