#5166D9#5166D9

#5166D9 is a mid, vivid blue. Relative luminance 0.163; OKLCH L 55.6% C 0.177 H 271.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5166D9
RGBrgb(81, 102, 217)
HSLhsl(231, 64%, 58%)
HSVhsv(231, 63%, 85%)
CMYKcmyk(62.7%, 53%, 0%, 14.9%)
CIE-LABlab(47.31, 27.75, -61.53)
CIE-LCHlch(47.31, 67.49, 294.28°)
OKLaboklab(55.64% 0.0052 -0.1766)
OKLCHoklch(55.64% 0.177 271.7)
XYZxyz(20.6649, 16.2601, 67.6817)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166D9 #D9C451
analogous
#51AAD9 #5166D9 #8051D9
triadic
#5166D9 #D95166 #66D951
tetradic
#5166D9 #D951AA #D9C451 #51D980
square
#5166D9 #D951AA #D9C451 #51D980
split-complementary
#5166D9 #D98051 #AAD951
monochromatic
#1F3190 #2A42C2 #5166D9 #8392E4 #B5BEEF

Accessibility & contrast

On white

4.94
#5166D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#5166D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166D9
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166D9#FFFFFF#000000##FFFFFF
##5166D91.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A76DD
Deuteranopia (green-blind)
#006AD7
Tritanopia (blue-blind)
#008196
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5166d9;
/* rgb */ color: rgb(81, 102, 217);
/* oklch */ color: oklch(55.6% 0.177 271.7);
Tailwind
colors: {
  custom: {
    50: '#8f91e5',
    500: '#5166d9',
    950: '#000000',
  },
}
SCSS
$custom: #5166d9;
$custom-light: #8f91e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5166d9",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 217
  },
  "hsl": {
    "h": 230.735,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55639,
    "c": 0.17665,
    "h": 271.7
  },
  "luminance": 0.16262
}

Semantic roles & 50–950 ramp

primary
#5166D9
secondary
#DED6A8
accent
#CD41E7
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5166D9

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

Preview Lab → · Contrast checker → · Palette generator →

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