#5166D1#5166D1

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

Color values

HEX#5166D1
RGBrgb(81, 102, 209)
HSLhsl(230, 58%, 57%)
HSVhsv(230, 61%, 82%)
CMYKcmyk(61.2%, 51.2%, 0%, 18%)
CIE-LABlab(46.78, 25.03, -57.82)
CIE-LCHlch(46.78, 63.01, 293.41°)
OKLaboklab(55.07% 0.0046 -0.1657)
OKLCHoklch(55.07% 0.166 271.6)
XYZxyz(19.6495, 15.8539, 62.3339)
Luminance0.1586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166D1 #D1BC51
analogous
#51A6D1 #5166D1 #7C51D1
triadic
#5166D1 #D15166 #66D151
tetradic
#5166D1 #D151A6 #D1BC51 #51D17C
square
#5166D1 #D151A6 #D1BC51 #51D17C
split-complementary
#5166D1 #D17C51 #A6D151
monochromatic
#233385 #3046B5 #5166D1 #8191DE #B2BBEB

Accessibility & contrast

On white

5.03
#5166D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5166D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166D1
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166D1#FFFFFF#000000##FFFFFF
##5166D11.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2975D5
Deuteranopia (green-blind)
#0069CF
Tritanopia (blue-blind)
#007F92
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5166d1;
/* rgb */ color: rgb(81, 102, 209);
/* oklch */ color: oklch(55.1% 0.166 271.6);
Tailwind
colors: {
  custom: {
    50: '#8d91e0',
    500: '#5166d1',
    950: '#000000',
  },
}
SCSS
$custom: #5166d1;
$custom-light: #8d91e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5166d1",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 209
  },
  "hsl": {
    "h": 230.156,
    "s": 58.182,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55069,
    "c": 0.16573,
    "h": 271.6
  },
  "luminance": 0.15856
}

Semantic roles & 50–950 ramp

primary
#5166D1
secondary
#D9D0A5
accent
#C846E1
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5166D1

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

Preview Lab → · Contrast checker → · Palette generator →

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