#5166A0#5166A0

#5166A0 is a mid, moderate blue. Relative luminance 0.138; OKLCH L 52.0% C 0.096 H 267.9°. Best body text is #FFFFFF at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#5166A0
RGBrgb(81, 102, 160)
HSLhsl(224, 33%, 47%)
HSVhsv(224, 49%, 63%)
CMYKcmyk(49.4%, 36.2%, 0%, 37.3%)
CIE-LABlab(43.93, 8.78, -33.87)
CIE-LCHlch(43.93, 34.99, 284.52°)
OKLaboklab(51.97% -0.0035 -0.0954)
OKLCHoklch(51.97% 0.096 267.9)
XYZxyz(14.4878, 13.7892, 35.1491)
Luminance0.1379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166A0 #A08B51
analogous
#518DA0 #5166A0 #6451A0
triadic
#5166A0 #A05166 #66A051
tetradic
#5166A0 #A0518D #A08B51 #51A064
square
#5166A0 #A0518D #A08B51 #51A064
split-complementary
#5166A0 #A06451 #8DA051
monochromatic
#28324F #3C4C77 #5166A0 #7587B9 #9EAACE

Accessibility & contrast

On white

5.59
#5166A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5166A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166A0
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166A0#FFFFFF#000000##FFFFFF
##5166A01.005.593.765.59
#FFFFFF5.591.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#506CA2
Deuteranopia (green-blind)
#48659F
Tritanopia (blue-blind)
#31727B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5166a0;
/* rgb */ color: rgb(81, 102, 160);
/* oklch */ color: oklch(52.0% 0.096 267.9);
Tailwind
colors: {
  custom: {
    50: '#8691bc',
    500: '#5166a0',
    950: '#000000',
  },
}
SCSS
$custom: #5166a0;
$custom-light: #8691bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5166a0",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 160
  },
  "hsl": {
    "h": 224.051,
    "s": 32.78,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51966,
    "c": 0.09551,
    "h": 267.9
  },
  "luminance": 0.1379
}

Semantic roles & 50–950 ramp

primary
#5166A0
secondary
#BBB092
accent
#AD5FC9
background
#F8F8FB
surface
#F0F0F6
border
#CBCBD0
text
#0B0C12
muted
#7C7D81

Preview Lab

Preview with #5166A0

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

Preview Lab → · Contrast checker → · Palette generator →

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