#5166D2#5166D2

#5166D2 is a mid, vivid blue. Relative luminance 0.159; OKLCH L 55.1% C 0.167 H 271.6°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5166D2
RGBrgb(81, 102, 210)
HSLhsl(230, 59%, 57%)
HSVhsv(230, 61%, 82%)
CMYKcmyk(61.4%, 51.4%, 0%, 17.6%)
CIE-LABlab(46.85, 25.37, -58.29)
CIE-LCHlch(46.85, 63.57, 293.52°)
OKLaboklab(55.14% 0.0046 -0.167)
OKLCHoklch(55.14% 0.167 271.6)
XYZxyz(19.7737, 15.9036, 62.9879)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166D2 #D2BD51
analogous
#51A6D2 #5166D2 #7D51D2
triadic
#5166D2 #D25166 #66D251
tetradic
#5166D2 #D251A6 #D2BD51 #51D27D
square
#5166D2 #D251A6 #D2BD51 #51D27D
split-complementary
#5166D2 #D27D51 #A6D251
monochromatic
#233386 #2F45B7 #5166D2 #8291DF #B2BCEB

Accessibility & contrast

On white

5.02
#5166D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5166D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166D2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166D2#FFFFFF#000000##FFFFFF
##5166D21.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2775D6
Deuteranopia (green-blind)
#006AD0
Tritanopia (blue-blind)
#007F92
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5166d2;
/* rgb */ color: rgb(81, 102, 210);
/* oklch */ color: oklch(55.1% 0.167 271.6);
Tailwind
colors: {
  custom: {
    50: '#8e91e0',
    500: '#5166d2',
    950: '#000000',
  },
}
SCSS
$custom: #5166d2;
$custom-light: #8e91e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5166d2",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 210
  },
  "hsl": {
    "h": 230.233,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55139,
    "c": 0.1671,
    "h": 271.6
  },
  "luminance": 0.15905
}

Semantic roles & 50–950 ramp

primary
#5166D2
secondary
#DAD1A5
accent
#C946E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5166D2

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

Preview Lab → · Contrast checker → · Palette generator →

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