#5166D5#5166D5

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

Color values

HEX#5166D5
RGBrgb(81, 102, 213)
HSLhsl(230, 61%, 58%)
HSVhsv(230, 62%, 84%)
CMYKcmyk(62%, 52.1%, 0%, 16.5%)
CIE-LABlab(47.05, 26.39, -59.68)
CIE-LCHlch(47.05, 65.26, 293.86°)
OKLaboklab(55.35% 0.0049 -0.1711)
OKLCHoklch(55.35% 0.171 271.6)
XYZxyz(20.1509, 16.0545, 64.9748)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166D5 #D5C051
analogous
#51A8D5 #5166D5 #7E51D5
triadic
#5166D5 #D55166 #66D551
tetradic
#5166D5 #D551A8 #D5C051 #51D57E
square
#5166D5 #D551A8 #D5C051 #51D57E
split-complementary
#5166D5 #D57E51 #A8D551
monochromatic
#21328A #2D44BC #5166D5 #8291E1 #B4BDED

Accessibility & contrast

On white

4.99
#5166D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5166D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166D5
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166D5#FFFFFF#000000##FFFFFF
##5166D51.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2276D9
Deuteranopia (green-blind)
#006AD3
Tritanopia (blue-blind)
#008094
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5166d5;
/* rgb */ color: rgb(81, 102, 213);
/* oklch */ color: oklch(55.4% 0.171 271.6);
Tailwind
colors: {
  custom: {
    50: '#8e91e3',
    500: '#5166d5',
    950: '#000000',
  },
}
SCSS
$custom: #5166d5;
$custom-light: #8e91e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5166d5",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 213
  },
  "hsl": {
    "h": 230.455,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55352,
    "c": 0.17121,
    "h": 271.6
  },
  "luminance": 0.16056
}

Semantic roles & 50–950 ramp

primary
#5166D5
secondary
#DBD3A6
accent
#CB44E4
background
#F9F8FE
surface
#F2F0FC
border
#CCCBD5
text
#0D0C15
muted
#7E7D84

Preview Lab

Preview with #5166D5

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

Preview Lab → · Contrast checker → · Palette generator →

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