#5166DC#5166DC

#5166DC is a mid, vivid blue. Relative luminance 0.164; OKLCH L 55.9% C 0.181 H 271.7°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5166DC
RGBrgb(81, 102, 220)
HSLhsl(231, 67%, 59%)
HSVhsv(231, 63%, 86%)
CMYKcmyk(63.2%, 53.6%, 0%, 13.7%)
CIE-LABlab(47.52, 28.77, -62.90)
CIE-LCHlch(47.52, 69.17, 294.58°)
OKLaboklab(55.86% 0.0053 -0.1806)
OKLCHoklch(55.86% 0.181 271.7)
XYZxyz(21.0587, 16.4176, 69.7554)
Luminance0.1642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166DC #DCC751
analogous
#51ACDC #5166DC #8251DC
triadic
#5166DC #DC5166 #66DC51
tetradic
#5166DC #DC51AC #DCC751 #51DC82
square
#5166DC #DC51AC #DCC751 #51DC82
split-complementary
#5166DC #DC8251 #ACDC51
monochromatic
#1E3095 #2840C8 #5166DC #8493E6 #B7C0F0

Accessibility & contrast

On white

4.90
#5166DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5166DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166DC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166DC#FFFFFF#000000##FFFFFF
##5166DC1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1177E0
Deuteranopia (green-blind)
#006BDA
Tritanopia (blue-blind)
#008297
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5166dc;
/* rgb */ color: rgb(81, 102, 220);
/* oklch */ color: oklch(55.9% 0.181 271.7);
Tailwind
colors: {
  custom: {
    50: '#8f91e8',
    500: '#5166dc',
    950: '#000000',
  },
}
SCSS
$custom: #5166dc;
$custom-light: #8f91e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5166dc",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 220
  },
  "hsl": {
    "h": 230.935,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55857,
    "c": 0.18069,
    "h": 271.7
  },
  "luminance": 0.16419
}

Semantic roles & 50–950 ramp

primary
#5166DC
secondary
#E0D7A9
accent
#D03EE9
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5166DC

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

Preview Lab → · Contrast checker → · Palette generator →

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