#5173C8#5173C8

#5173C8 is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.1% C 0.137 H 265.8°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#5173C8
RGBrgb(81, 115, 200)
HSLhsl(223, 52%, 55%)
HSVhsv(223, 60%, 78%)
CMYKcmyk(59.5%, 42.5%, 0%, 21.6%)
CIE-LABlab(49.71, 13.88, -47.98)
CIE-LCHlch(49.71, 49.94, 286.14°)
OKLaboklab(57.13% -0.01 -0.1366)
OKLCHoklch(57.13% 0.137 265.8)
XYZxyz(19.9458, 18.1793, 57.0902)
Luminance0.1818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173C8 #C8A651
analogous
#51AFC8 #5173C8 #6A51C8
triadic
#5173C8 #C85173 #73C851
tetradic
#5173C8 #C851AF #C8A651 #51C86A
square
#5173C8 #C851AF #C8A651 #51C86A
split-complementary
#5173C8 #C86A51 #AFC851
monochromatic
#263E79 #3555A7 #5173C8 #8098D7 #AEBEE5

Accessibility & contrast

On white

4.53
#5173C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#5173C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173C8
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173C8#FFFFFF#000000##000000
##5173C81.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D7CCB
Deuteranopia (green-blind)
#3D71C6
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5173c8;
/* rgb */ color: rgb(81, 115, 200);
/* oklch */ color: oklch(57.1% 0.137 265.8);
Tailwind
colors: {
  custom: {
    50: '#8c9ad9',
    500: '#5173c8',
    950: '#000000',
  },
}
SCSS
$custom: #5173c8;
$custom-light: #8c9ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#5173c8",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 200
  },
  "hsl": {
    "h": 222.857,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.57127,
    "c": 0.13694,
    "h": 265.8
  },
  "luminance": 0.18181
}

Semantic roles & 50–950 ramp

primary
#5173C8
secondary
#D3C5A1
accent
#B34CDB
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5173C8

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

Preview Lab → · Contrast checker → · Palette generator →

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