#5166EA#5166EA

#5166EA is a mid, vivid blue. Relative luminance 0.172; OKLCH L 56.9% C 0.199 H 271.7°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5166EA
RGBrgb(81, 102, 234)
HSLhsl(232, 78%, 62%)
HSVhsv(232, 65%, 92%)
CMYKcmyk(65.4%, 56.4%, 0%, 8.2%)
CIE-LABlab(48.50, 33.52, -69.21)
CIE-LCHlch(48.50, 76.91, 295.84°)
OKLaboklab(56.9% 0.0059 -0.1992)
OKLCHoklch(56.9% 0.199 271.7)
XYZxyz(22.9910, 17.1905, 79.9324)
Luminance0.1719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166EA #EAD551
analogous
#51B2EA #5166EA #8951EA
triadic
#5166EA #EA5166 #66EA51
tetradic
#5166EA #EA51B2 #EAD551 #51EA89
square
#5166EA #EA51B2 #EAD551 #51EA89
split-complementary
#5166EA #EA8951 #B2EA51
monochromatic
#1529AC #1B37E2 #5166EA #8896F1 #BEC6F7

Accessibility & contrast

On white

4.73
#5166EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#5166EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166EA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166EA#FFFFFF#000000##FFFFFF
##5166EA1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AEE
Deuteranopia (green-blind)
#006CE7
Tritanopia (blue-blind)
#00869E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5166ea;
/* rgb */ color: rgb(81, 102, 234);
/* oklch */ color: oklch(56.9% 0.199 271.7);
Tailwind
colors: {
  custom: {
    50: '#9291f2',
    500: '#5166ea',
    950: '#000000',
  },
}
SCSS
$custom: #5166ea;
$custom-light: #9291f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5166ea",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 234
  },
  "hsl": {
    "h": 231.765,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56902,
    "c": 0.19928,
    "h": 271.7
  },
  "luminance": 0.17193
}

Semantic roles & 50–950 ramp

primary
#5166EA
secondary
#E8E0AF
accent
#BE0BDB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C17
muted
#7E7D85

Preview Lab

Preview with #5166EA

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

Preview Lab → · Contrast checker → · Palette generator →

#5166EA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva