#5171E9#5171E9

#5171E9 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.9% C 0.185 H 268.9°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#5171E9
RGBrgb(81, 113, 233)
HSLhsl(227, 78%, 62%)
HSVhsv(227, 65%, 91%)
CMYKcmyk(65.2%, 51.5%, 0%, 8.6%)
CIE-LABlab(51.20, 26.39, -64.28)
CIE-LCHlch(51.20, 69.49, 292.32°)
OKLaboklab(58.91% -0.0036 -0.1845)
OKLCHoklch(58.91% 0.185 268.9)
XYZxyz(24.0014, 19.4406, 79.5625)
Luminance0.1944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171E9 #E9C951
analogous
#51BDE9 #5171E9 #7D51E9
triadic
#5171E9 #E95171 #71E951
tetradic
#5171E9 #E951BD #E9C951 #51E97D
square
#5171E9 #E951BD #E9C951 #51E97D
split-complementary
#5171E9 #E97D51 #BDE951
monochromatic
#1635AA #1C46E0 #5171E9 #879DF0 #BECAF7

Accessibility & contrast

On white

4.30
#5171E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#5171E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171E9
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171E9#FFFFFF#000000##000000
##5171E91.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2681ED
Deuteranopia (green-blind)
#0073E7
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5171e9;
/* rgb */ color: rgb(81, 113, 233);
/* oklch */ color: oklch(58.9% 0.185 268.9);
Tailwind
colors: {
  custom: {
    50: '#9199f1',
    500: '#5171e9',
    950: '#000000',
  },
}
SCSS
$custom: #5171e9;
$custom-light: #9199f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5171e9",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 233
  },
  "hsl": {
    "h": 227.368,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.58908,
    "c": 0.18458,
    "h": 268.9
  },
  "luminance": 0.19443
}

Semantic roles & 50–950 ramp

primary
#5171E9
secondary
#E7DBAF
accent
#AE0CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5171E9

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

Preview Lab → · Contrast checker → · Palette generator →

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