#5171EE#5171EE

#5171EE is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.3% C 0.191 H 269.0°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5171EE
RGBrgb(81, 113, 238)
HSLhsl(228, 82%, 63%)
HSVhsv(228, 66%, 93%)
CMYKcmyk(66%, 52.5%, 0%, 6.7%)
CIE-LABlab(51.53, 28.10, -66.54)
CIE-LCHlch(51.53, 72.23, 292.90°)
OKLaboklab(59.27% -0.0032 -0.1912)
OKLCHoklch(59.27% 0.191 269)
XYZxyz(24.7258, 19.7303, 83.3776)
Luminance0.1973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171EE #EECE51
analogous
#51BFEE #5171EE #8051EE
triadic
#5171EE #EE5171 #71EE51
tetradic
#5171EE #EE51BF #EECE51 #51EE80
square
#5171EE #EE51BF #EECE51 #51EE80
split-complementary
#5171EE #EE8051 #BFEE51
monochromatic
#1132B3 #1943E9 #5171EE #899EF3 #C1CCF9

Accessibility & contrast

On white

4.25
#5171EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#5171EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5171EE
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171EE#FFFFFF#000000##000000
##5171EE1.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B82F2
Deuteranopia (green-blind)
#0074EB
Tritanopia (blue-blind)
#008FA5
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5171ee;
/* rgb */ color: rgb(81, 113, 238);
/* oklch */ color: oklch(59.3% 0.191 269.0);
Tailwind
colors: {
  custom: {
    50: '#9299f4',
    500: '#5171ee',
    950: '#000000',
  },
}
SCSS
$custom: #5171ee;
$custom-light: #9299f4;
$custom-dark: #000000;
JSON
{
  "hex": "#5171ee",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 238
  },
  "hsl": {
    "h": 227.771,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59265,
    "c": 0.19122,
    "h": 269
  },
  "luminance": 0.19733
}

Semantic roles & 50–950 ramp

primary
#5171EE
secondary
#EADEB1
accent
#B307DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5171EE

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

Preview Lab → · Contrast checker → · Palette generator →

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