#5166D6#5166D6

#5166D6 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 55.4% C 0.173 H 271.6°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5166D6
RGBrgb(81, 102, 214)
HSLhsl(231, 62%, 58%)
HSVhsv(231, 62%, 84%)
CMYKcmyk(62.1%, 52.3%, 0%, 16.1%)
CIE-LABlab(47.11, 26.73, -60.14)
CIE-LCHlch(47.11, 65.82, 293.96°)
OKLaboklab(55.42% 0.005 -0.1725)
OKLCHoklch(55.42% 0.173 271.6)
XYZxyz(20.2783, 16.1054, 65.6453)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166D6 #D6C151
analogous
#51A9D6 #5166D6 #7E51D6
triadic
#5166D6 #D65166 #66D651
tetradic
#5166D6 #D651A9 #D6C151 #51D67E
square
#5166D6 #D651A9 #D6C151 #51D67E
split-complementary
#5166D6 #D67E51 #A9D651
monochromatic
#21328C #2D43BD #5166D6 #8392E2 #B4BDED

Accessibility & contrast

On white

4.97
#5166D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#5166D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166D6
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166D6#FFFFFF#000000##FFFFFF
##5166D61.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2076DA
Deuteranopia (green-blind)
#006AD4
Tritanopia (blue-blind)
#008094
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5166d6;
/* rgb */ color: rgb(81, 102, 214);
/* oklch */ color: oklch(55.4% 0.173 271.6);
Tailwind
colors: {
  custom: {
    50: '#8e91e3',
    500: '#5166d6',
    950: '#000000',
  },
}
SCSS
$custom: #5166d6;
$custom-light: #8e91e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5166d6",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 214
  },
  "hsl": {
    "h": 230.526,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55423,
    "c": 0.17257,
    "h": 271.6
  },
  "luminance": 0.16107
}

Semantic roles & 50–950 ramp

primary
#5166D6
secondary
#DCD4A7
accent
#CB43E5
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C15
muted
#7E7D84

Preview Lab

Preview with #5166D6

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

Preview Lab → · Contrast checker → · Palette generator →

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