#5166DD#5166DD

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

Color values

HEX#5166DD
RGBrgb(81, 102, 221)
HSLhsl(231, 67%, 59%)
HSVhsv(231, 63%, 87%)
CMYKcmyk(63.3%, 53.8%, 0%, 13.3%)
CIE-LABlab(47.59, 29.11, -63.36)
CIE-LCHlch(47.59, 69.72, 294.68°)
OKLaboklab(55.93% 0.0054 -0.182)
OKLCHoklch(55.93% 0.182 271.7)
XYZxyz(21.1915, 16.4707, 70.4550)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166DD #DDC851
analogous
#51ACDD #5166DD #8251DD
triadic
#5166DD #DD5166 #66DD51
tetradic
#5166DD #DD51AC #DDC851 #51DD82
square
#5166DD #DD51AC #DDC851 #51DD82
split-complementary
#5166DD #DD8251 #ACDD51
monochromatic
#1D2F96 #2740C9 #5166DD #8493E7 #B7C0F1

Accessibility & contrast

On white

4.89
#5166DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5166DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166DD
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166DD#FFFFFF#000000##FFFFFF
##5166DD1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E77E1
Deuteranopia (green-blind)
#006BDB
Tritanopia (blue-blind)
#008298
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5166dd;
/* rgb */ color: rgb(81, 102, 221);
/* oklch */ color: oklch(55.9% 0.182 271.7);
Tailwind
colors: {
  custom: {
    50: '#9091e8',
    500: '#5166dd',
    950: '#000000',
  },
}
SCSS
$custom: #5166dd;
$custom-light: #9091e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5166dd",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 221
  },
  "hsl": {
    "h": 231,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5593,
    "c": 0.18204,
    "h": 271.7
  },
  "luminance": 0.16473
}

Semantic roles & 50–950 ramp

primary
#5166DD
secondary
#E0D8AA
accent
#D03EEA
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5166DD

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

Preview Lab → · Contrast checker → · Palette generator →

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