#5171E7#5171E7

#5171E7 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.8% C 0.182 H 268.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5171E7
RGBrgb(81, 113, 231)
HSLhsl(227, 76%, 61%)
HSVhsv(227, 65%, 91%)
CMYKcmyk(64.9%, 51.1%, 0%, 9.4%)
CIE-LABlab(51.07, 25.70, -63.37)
CIE-LCHlch(51.07, 68.38, 292.07°)
OKLaboklab(58.77% -0.0038 -0.1819)
OKLCHoklch(58.77% 0.182 268.8)
XYZxyz(23.7173, 19.3269, 78.0664)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171E7 #E7C751
analogous
#51BCE7 #5171E7 #7C51E7
triadic
#5171E7 #E75171 #71E751
tetradic
#5171E7 #E751BC #E7C751 #51E77C
square
#5171E7 #E751BC #E7C751 #51E77C
split-complementary
#5171E7 #E77C51 #BCE751
monochromatic
#1736A7 #1E47DC #5171E7 #879DEE #BDC9F6

Accessibility & contrast

On white

4.32
#5171E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5171E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171E7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171E7#FFFFFF#000000##000000
##5171E71.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2981EB
Deuteranopia (green-blind)
#0073E5
Tritanopia (blue-blind)
#008DA1
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5171e7;
/* rgb */ color: rgb(81, 113, 231);
/* oklch */ color: oklch(58.8% 0.182 268.8);
Tailwind
colors: {
  custom: {
    50: '#9199ef',
    500: '#5171e7',
    950: '#000000',
  },
}
SCSS
$custom: #5171e7;
$custom-light: #9199ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5171e7",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 227.2,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58767,
    "c": 0.1819,
    "h": 268.8
  },
  "luminance": 0.19329
}

Semantic roles & 50–950 ramp

primary
#5171E7
secondary
#E6DAAE
accent
#AD0ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5171E7

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

Preview Lab → · Contrast checker → · Palette generator →

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