#5166AD#5166AD

#5166AD is a mid, moderate blue. Relative luminance 0.143; OKLCH L 52.7% C 0.115 H 269.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5166AD
RGBrgb(81, 102, 173)
HSLhsl(226, 36%, 50%)
HSVhsv(226, 53%, 68%)
CMYKcmyk(53.2%, 41%, 0%, 32.2%)
CIE-LABlab(44.62, 12.98, -40.45)
CIE-LCHlch(44.62, 42.48, 287.80°)
OKLaboklab(52.72% -0.0005 -0.1146)
OKLCHoklch(52.72% 0.115 269.7)
XYZxyz(15.6851, 14.2681, 41.4546)
Luminance0.1427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166AD #AD9851
analogous
#5194AD #5166AD #6A51AD
triadic
#5166AD #AD5166 #66AD51
tetradic
#5166AD #AD5194 #AD9851 #51AD6A
square
#5166AD #AD5194 #AD9851 #51AD6A
split-complementary
#5166AD #AD6A51 #94AD51
monochromatic
#2A355A #3D4D83 #5166AD #7A8AC1 #A4AFD4

Accessibility & contrast

On white

5.45
#5166AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5166AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166AD
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166AD#FFFFFF#000000##FFFFFF
##5166AD1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#496EB0
Deuteranopia (green-blind)
#3F66AB
Tritanopia (blue-blind)
#257581
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5166ad;
/* rgb */ color: rgb(81, 102, 173);
/* oklch */ color: oklch(52.7% 0.115 269.7);
Tailwind
colors: {
  custom: {
    50: '#8891c6',
    500: '#5166ad',
    950: '#000000',
  },
}
SCSS
$custom: #5166ad;
$custom-light: #8891c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5166ad",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 173
  },
  "hsl": {
    "h": 226.304,
    "s": 36.22,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52719,
    "c": 0.11464,
    "h": 269.7
  },
  "luminance": 0.14269
}

Semantic roles & 50–950 ramp

primary
#5166AD
secondary
#C2B898
accent
#B35CCC
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166AD

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

Preview Lab → · Contrast checker → · Palette generator →

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