#5173EB#5173EB

#5173EB is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.4% C 0.185 H 268.4°. Best body text is #000000 at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5173EB
RGBrgb(81, 115, 235)
HSLhsl(227, 79%, 62%)
HSVhsv(227, 66%, 92%)
CMYKcmyk(65.5%, 51.1%, 0%, 7.8%)
CIE-LABlab(51.84, 25.84, -64.36)
CIE-LCHlch(51.84, 69.35, 291.87°)
OKLaboklab(59.44% -0.0052 -0.1847)
OKLCHoklch(59.44% 0.185 268.4)
XYZxyz(24.5143, 20.0067, 81.1509)
Luminance0.2001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173EB #EBC951
analogous
#51C0EB #5173EB #7C51EB
triadic
#5173EB #EB5173 #73EB51
tetradic
#5173EB #EB51C0 #EBC951 #51EB7C
square
#5173EB #EB51C0 #EBC951 #51EB7C
split-complementary
#5173EB #EB7C51 #C0EB51
monochromatic
#1436AE #1A47E5 #5173EB #889FF1 #BFCBF8

Accessibility & contrast

On white

4.20
#5173EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.00
#5173EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173EB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173EB#FFFFFF#000000##000000
##5173EB1.004.205.005.00
#FFFFFF4.201.0021.0021.00
#0000005.0021.001.001.00
##0000005.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A83EF
Deuteranopia (green-blind)
#0075E9
Tritanopia (blue-blind)
#008FA4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5173eb;
/* rgb */ color: rgb(81, 115, 235);
/* oklch */ color: oklch(59.4% 0.185 268.4);
Tailwind
colors: {
  custom: {
    50: '#919af2',
    500: '#5173eb',
    950: '#000000',
  },
}
SCSS
$custom: #5173eb;
$custom-light: #919af2;
$custom-dark: #000000;
JSON
{
  "hex": "#5173eb",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 235
  },
  "hsl": {
    "h": 226.753,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.59439,
    "c": 0.18481,
    "h": 268.4
  },
  "luminance": 0.20009
}

Semantic roles & 50–950 ramp

primary
#5173EB
secondary
#E8DCB0
accent
#AD0ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5173EB

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

Preview Lab → · Contrast checker → · Palette generator →

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