#5166D7#5166D7

#5166D7 is a mid, vivid blue. Relative luminance 0.162; OKLCH L 55.5% C 0.174 H 271.7°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5166D7
RGBrgb(81, 102, 215)
HSLhsl(231, 63%, 58%)
HSVhsv(231, 62%, 84%)
CMYKcmyk(62.3%, 52.6%, 0%, 15.7%)
CIE-LABlab(47.18, 27.07, -60.60)
CIE-LCHlch(47.18, 66.38, 294.07°)
OKLaboklab(55.5% 0.005 -0.1739)
OKLCHoklch(55.5% 0.174 271.7)
XYZxyz(20.4064, 16.1566, 66.3200)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166D7 #D7C251
analogous
#51A9D7 #5166D7 #7F51D7
triadic
#5166D7 #D75166 #66D751
tetradic
#5166D7 #D751A9 #D7C251 #51D77F
square
#5166D7 #D751A9 #D7C251 #51D77F
split-complementary
#5166D7 #D77F51 #A9D751
monochromatic
#20318D #2C43BF #5166D7 #8392E2 #B5BEEE

Accessibility & contrast

On white

4.96
#5166D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#5166D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166D7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166D7#FFFFFF#000000##FFFFFF
##5166D71.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E76DB
Deuteranopia (green-blind)
#006AD5
Tritanopia (blue-blind)
#008095
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5166d7;
/* rgb */ color: rgb(81, 102, 215);
/* oklch */ color: oklch(55.5% 0.174 271.7);
Tailwind
colors: {
  custom: {
    50: '#8e91e4',
    500: '#5166d7',
    950: '#000000',
  },
}
SCSS
$custom: #5166d7;
$custom-light: #8e91e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5166d7",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 215
  },
  "hsl": {
    "h": 230.597,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.55495,
    "c": 0.17393,
    "h": 271.7
  },
  "luminance": 0.16158
}

Semantic roles & 50–950 ramp

primary
#5166D7
secondary
#DDD4A7
accent
#CC42E6
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #5166D7

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

Preview Lab → · Contrast checker → · Palette generator →

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