#5166AC#5166AC

#5166AC is a mid, moderate blue. Relative luminance 0.142; OKLCH L 52.7% C 0.113 H 269.6°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#5166AC
RGBrgb(81, 102, 172)
HSLhsl(226, 36%, 50%)
HSVhsv(226, 53%, 67%)
CMYKcmyk(52.9%, 40.7%, 0%, 32.5%)
CIE-LABlab(44.56, 12.65, -39.95)
CIE-LCHlch(44.56, 41.90, 287.58°)
OKLaboklab(52.66% -0.0008 -0.1132)
OKLCHoklch(52.66% 0.113 269.6)
XYZxyz(15.5887, 14.2296, 40.9469)
Luminance0.1423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166AC #AC9751
analogous
#5194AC #5166AC #6A51AC
triadic
#5166AC #AC5166 #66AC51
tetradic
#5166AC #AC5194 #AC9751 #51AC6A
square
#5166AC #AC5194 #AC9751 #51AC6A
split-complementary
#5166AC #AC6A51 #94AC51
monochromatic
#2A3559 #3D4D82 #5166AC #7A8AC0 #A3AFD4

Accessibility & contrast

On white

5.46
#5166AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5166AC
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166AC#FFFFFF#000000##FFFFFF
##5166AC1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A6EAF
Deuteranopia (green-blind)
#4066AA
Tritanopia (blue-blind)
#267580
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5166ac;
/* rgb */ color: rgb(81, 102, 172);
/* oklch */ color: oklch(52.7% 0.113 269.6);
Tailwind
colors: {
  custom: {
    50: '#8891c5',
    500: '#5166ac',
    950: '#000000',
  },
}
SCSS
$custom: #5166ac;
$custom-light: #8891c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5166ac",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 172
  },
  "hsl": {
    "h": 226.154,
    "s": 35.968,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52659,
    "c": 0.11318,
    "h": 269.6
  },
  "luminance": 0.14231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5166AC

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

Preview Lab → · Contrast checker → · Palette generator →

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