#5166A2#5166A2

#5166A2 is a mid, moderate blue. Relative luminance 0.139; OKLCH L 52.1% C 0.098 H 268.3°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5166A2
RGBrgb(81, 102, 162)
HSLhsl(224, 33%, 48%)
HSVhsv(224, 50%, 64%)
CMYKcmyk(50%, 37%, 0%, 36.5%)
CIE-LABlab(44.03, 9.41, -34.89)
CIE-LCHlch(44.03, 36.14, 285.10°)
OKLaboklab(52.08% -0.003 -0.0984)
OKLCHoklch(52.08% 0.098 268.3)
XYZxyz(14.6642, 13.8598, 36.0779)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166A2 #A28D51
analogous
#518FA2 #5166A2 #6451A2
triadic
#5166A2 #A25166 #66A251
tetradic
#5166A2 #A2518F #A28D51 #51A264
square
#5166A2 #A2518F #A28D51 #51A264
split-complementary
#5166A2 #A26451 #8FA251
monochromatic
#283350 #3D4C79 #5166A2 #7688BA #9FABCF

Accessibility & contrast

On white

5.57
#5166A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5166A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166A2
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166A2#FFFFFF#000000##FFFFFF
##5166A21.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F6CA4
Deuteranopia (green-blind)
#4765A1
Tritanopia (blue-blind)
#2F737C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5166a2;
/* rgb */ color: rgb(81, 102, 162);
/* oklch */ color: oklch(52.1% 0.098 268.3);
Tailwind
colors: {
  custom: {
    50: '#8791be',
    500: '#5166a2',
    950: '#000000',
  },
}
SCSS
$custom: #5166a2;
$custom-light: #8791be;
$custom-dark: #000000;
JSON
{
  "hex": "#5166a2",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 162
  },
  "hsl": {
    "h": 224.444,
    "s": 33.333,
    "l": 47.647
  },
  "oklch": {
    "l": 0.52078,
    "c": 0.09848,
    "h": 268.3
  },
  "luminance": 0.13861
}

Semantic roles & 50–950 ramp

primary
#5166A2
secondary
#BCB193
accent
#AE5EC9
background
#F8F8FB
surface
#F0F0F6
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #5166A2

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

Preview Lab → · Contrast checker → · Palette generator →

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