#5166AB#5166AB

#5166AB is a mid, moderate blue. Relative luminance 0.142; OKLCH L 52.6% C 0.112 H 269.5°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5166AB
RGBrgb(81, 102, 171)
HSLhsl(226, 36%, 49%)
HSVhsv(226, 53%, 67%)
CMYKcmyk(52.6%, 40.4%, 0%, 32.9%)
CIE-LABlab(44.51, 12.33, -39.45)
CIE-LCHlch(44.51, 41.33, 287.36°)
OKLaboklab(52.6% -0.001 -0.1117)
OKLCHoklch(52.6% 0.112 269.5)
XYZxyz(15.4930, 14.1913, 40.4430)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166AB #AB9651
analogous
#5193AB #5166AB #6951AB
triadic
#5166AB #AB5166 #66AB51
tetradic
#5166AB #AB5193 #AB9651 #51AB69
square
#5166AB #AB5193 #AB9651 #51AB69
split-complementary
#5166AB #AB6951 #93AB51
monochromatic
#2A3458 #3D4D81 #5166AB #798AC0 #A3AED3

Accessibility & contrast

On white

5.47
#5166AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5166AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166AB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166AB#FFFFFF#000000##FFFFFF
##5166AB1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6DAE
Deuteranopia (green-blind)
#4066A9
Tritanopia (blue-blind)
#277580
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5166ab;
/* rgb */ color: rgb(81, 102, 171);
/* oklch */ color: oklch(52.6% 0.112 269.5);
Tailwind
colors: {
  custom: {
    50: '#8891c4',
    500: '#5166ab',
    950: '#000000',
  },
}
SCSS
$custom: #5166ab;
$custom-light: #8891c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5166ab",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 171
  },
  "hsl": {
    "h": 226,
    "s": 35.714,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52599,
    "c": 0.11172,
    "h": 269.5
  },
  "luminance": 0.14192
}

Semantic roles & 50–950 ramp

primary
#5166AB
secondary
#C1B797
accent
#B25CCC
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166AB

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

Preview Lab → · Contrast checker → · Palette generator →

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