#5166AE#5166AE

#5166AE is a mid, moderate blue. Relative luminance 0.143; OKLCH L 52.8% C 0.116 H 269.8°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5166AE
RGBrgb(81, 102, 174)
HSLhsl(226, 36%, 50%)
HSVhsv(226, 53%, 68%)
CMYKcmyk(53.4%, 41.4%, 0%, 31.8%)
CIE-LABlab(44.67, 13.31, -40.95)
CIE-LCHlch(44.67, 43.05, 288.01°)
OKLaboklab(52.78% -0.0003 -0.1161)
OKLCHoklch(52.78% 0.116 269.8)
XYZxyz(15.7822, 14.3070, 41.9661)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166AE #AE9951
analogous
#5194AE #5166AE #6B51AE
triadic
#5166AE #AE5166 #66AE51
tetradic
#5166AE #AE5194 #AE9951 #51AE6B
square
#5166AE #AE5194 #AE9951 #51AE6B
split-complementary
#5166AE #AE6B51 #94AE51
monochromatic
#2A355A #3E4E84 #5166AE #7B8BC1 #A5AFD5

Accessibility & contrast

On white

5.44
#5166AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5166AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166AE
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166AE#FFFFFF#000000##FFFFFF
##5166AE1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486EB1
Deuteranopia (green-blind)
#3E66AC
Tritanopia (blue-blind)
#247681
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5166ae;
/* rgb */ color: rgb(81, 102, 174);
/* oklch */ color: oklch(52.8% 0.116 269.8);
Tailwind
colors: {
  custom: {
    50: '#8891c6',
    500: '#5166ae',
    950: '#000000',
  },
}
SCSS
$custom: #5166ae;
$custom-light: #8891c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5166ae",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 174
  },
  "hsl": {
    "h": 226.452,
    "s": 36.471,
    "l": 50
  },
  "oklch": {
    "l": 0.52779,
    "c": 0.1161,
    "h": 269.8
  },
  "luminance": 0.14308
}

Semantic roles & 50–950 ramp

primary
#5166AE
secondary
#C2B999
accent
#B35BCC
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166AE

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

Preview Lab → · Contrast checker → · Palette generator →

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