#5166A5#5166A5

#5166A5 is a mid, moderate blue. Relative luminance 0.140; OKLCH L 52.2% C 0.103 H 268.7°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5166A5
RGBrgb(81, 102, 165)
HSLhsl(225, 34%, 48%)
HSVhsv(225, 51%, 65%)
CMYKcmyk(50.9%, 38.2%, 0%, 35.3%)
CIE-LABlab(44.19, 10.38, -36.42)
CIE-LCHlch(44.19, 37.87, 285.91°)
OKLaboklab(52.25% -0.0023 -0.1029)
OKLCHoklch(52.25% 0.103 268.7)
XYZxyz(14.9340, 13.9677, 37.4991)
Luminance0.1397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166A5 #A59051
analogous
#5190A5 #5166A5 #6651A5
triadic
#5166A5 #A55166 #66A551
tetradic
#5166A5 #A55190 #A59051 #51A566
square
#5166A5 #A55190 #A59051 #51A566
split-complementary
#5166A5 #A56651 #90A551
monochromatic
#293353 #3D4D7C #5166A5 #7788BC #A0ACD0

Accessibility & contrast

On white

5.54
#5166A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5166A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166A5
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166A5#FFFFFF#000000##FFFFFF
##5166A51.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E6CA8
Deuteranopia (green-blind)
#4565A4
Tritanopia (blue-blind)
#2D737D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5166a5;
/* rgb */ color: rgb(81, 102, 165);
/* oklch */ color: oklch(52.2% 0.103 268.7);
Tailwind
colors: {
  custom: {
    50: '#8791c0',
    500: '#5166a5',
    950: '#000000',
  },
}
SCSS
$custom: #5166a5;
$custom-light: #8791c0;
$custom-dark: #000000;
JSON
{
  "hex": "#5166a5",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 165
  },
  "hsl": {
    "h": 225,
    "s": 34.146,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52249,
    "c": 0.10291,
    "h": 268.7
  },
  "luminance": 0.13969
}

Semantic roles & 50–950 ramp

primary
#5166A5
secondary
#BDB394
accent
#AF5ECA
background
#F8F8FB
surface
#F0F0F7
border
#CBCBD0
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #5166A5

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

Preview Lab → · Contrast checker → · Palette generator →

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