#5166E6#5166E6

#5166E6 is a mid, vivid blue. Relative luminance 0.170; OKLCH L 56.6% C 0.194 H 271.7°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5166E6
RGBrgb(81, 102, 230)
HSLhsl(232, 75%, 61%)
HSVhsv(232, 65%, 90%)
CMYKcmyk(64.8%, 55.7%, 0%, 9.8%)
CIE-LABlab(48.21, 32.17, -67.43)
CIE-LCHlch(48.21, 74.71, 295.50°)
OKLaboklab(56.6% 0.0058 -0.1939)
OKLCHoklch(56.6% 0.194 271.7)
XYZxyz(22.4228, 16.9632, 76.9401)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166E6 #E6D151
analogous
#51B0E6 #5166E6 #8651E6
triadic
#5166E6 #E65166 #66E651
tetradic
#5166E6 #E651B0 #E6D151 #51E686
square
#5166E6 #E651B0 #E6D151 #51E686
split-complementary
#5166E6 #E68651 #B0E651
monochromatic
#182CA5 #1F3ADA #5166E6 #8795EE #BCC4F5

Accessibility & contrast

On white

4.78
#5166E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5166E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166E6
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166E6#FFFFFF#000000##FFFFFF
##5166E61.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079EA
Deuteranopia (green-blind)
#006CE3
Tritanopia (blue-blind)
#00859C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5166e6;
/* rgb */ color: rgb(81, 102, 230);
/* oklch */ color: oklch(56.6% 0.194 271.7);
Tailwind
colors: {
  custom: {
    50: '#9191ef',
    500: '#5166e6',
    950: '#000000',
  },
}
SCSS
$custom: #5166e6;
$custom-light: #9191ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5166e6",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 230
  },
  "hsl": {
    "h": 231.544,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56599,
    "c": 0.19402,
    "h": 271.7
  },
  "luminance": 0.16965
}

Semantic roles & 50–950 ramp

primary
#5166E6
secondary
#E5DEAD
accent
#BB0ED7
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5166E6

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

Preview Lab → · Contrast checker → · Palette generator →

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