#5171E3#5171E3

#5171E3 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.5% C 0.177 H 268.6°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5171E3
RGBrgb(81, 113, 227)
HSLhsl(227, 72%, 60%)
HSVhsv(227, 64%, 89%)
CMYKcmyk(64.3%, 50.2%, 0%, 11%)
CIE-LABlab(50.81, 24.33, -61.54)
CIE-LCHlch(50.81, 66.18, 291.57°)
OKLaboklab(58.49% -0.0042 -0.1765)
OKLCHoklch(58.49% 0.177 268.6)
XYZxyz(23.1589, 19.1035, 75.1250)
Luminance0.1911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171E3 #E3C351
analogous
#51BAE3 #5171E3 #7A51E3
triadic
#5171E3 #E35171 #71E351
tetradic
#5171E3 #E351BA #E3C351 #51E37A
square
#5171E3 #E351BA #E3C351 #51E37A
split-complementary
#5171E3 #E37A51 #BAE351
monochromatic
#1A37A0 #2249D5 #5171E3 #869CEB #BAC7F4

Accessibility & contrast

On white

4.36
#5171E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#5171E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171E3
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171E3#FFFFFF#000000##000000
##5171E31.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F80E7
Deuteranopia (green-blind)
#0073E1
Tritanopia (blue-blind)
#008C9F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5171e3;
/* rgb */ color: rgb(81, 113, 227);
/* oklch */ color: oklch(58.5% 0.177 268.6);
Tailwind
colors: {
  custom: {
    50: '#9099ec',
    500: '#5171e3',
    950: '#000000',
  },
}
SCSS
$custom: #5171e3;
$custom-light: #9099ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5171e3",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 227
  },
  "hsl": {
    "h": 226.849,
    "s": 72.277,
    "l": 60.392
  },
  "oklch": {
    "l": 0.58488,
    "c": 0.17653,
    "h": 268.6
  },
  "luminance": 0.19106
}

Semantic roles & 50–950 ramp

primary
#5171E3
secondary
#E4D8AC
accent
#AA11D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5171E3

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

Preview Lab → · Contrast checker → · Palette generator →

#5171E3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva