#5166DE#5166DE

#5166DE is a mid, vivid blue. Relative luminance 0.165; OKLCH L 56.0% C 0.183 H 271.7°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5166DE
RGBrgb(81, 102, 222)
HSLhsl(231, 68%, 59%)
HSVhsv(231, 64%, 87%)
CMYKcmyk(63.5%, 54.1%, 0%, 12.9%)
CIE-LABlab(47.65, 29.45, -63.81)
CIE-LCHlch(47.65, 70.28, 294.77°)
OKLaboklab(56% 0.0055 -0.1833)
OKLCHoklch(56% 0.183 271.7)
XYZxyz(21.3251, 16.5241, 71.1588)
Luminance0.1653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166DE #DEC951
analogous
#51ADDE #5166DE #8351DE
triadic
#5166DE #DE5166 #66DE51
tetradic
#5166DE #DE51AD #DEC951 #51DE83
square
#5166DE #DE51AD #DEC951 #51DE83
split-complementary
#5166DE #DE8351 #ADDE51
monochromatic
#1D2F98 #273FCB #5166DE #8493E8 #B8C0F2

Accessibility & contrast

On white

4.88
#5166DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#5166DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166DE
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166DE#FFFFFF#000000##FFFFFF
##5166DE1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0978E2
Deuteranopia (green-blind)
#006BDC
Tritanopia (blue-blind)
#008298
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5166de;
/* rgb */ color: rgb(81, 102, 222);
/* oklch */ color: oklch(56.0% 0.183 271.7);
Tailwind
colors: {
  custom: {
    50: '#9091e9',
    500: '#5166de',
    950: '#000000',
  },
}
SCSS
$custom: #5166de;
$custom-light: #9091e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5166de",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 222
  },
  "hsl": {
    "h": 231.064,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56003,
    "c": 0.18338,
    "h": 271.7
  },
  "luminance": 0.16526
}

Semantic roles & 50–950 ramp

primary
#5166DE
secondary
#E1D9AA
accent
#D13DEB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5166DE

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

Preview Lab → · Contrast checker → · Palette generator →

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