#5166AA#5166AA

#5166AA is a mid, moderate blue. Relative luminance 0.142; OKLCH L 52.5% C 0.110 H 269.4°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5166AA
RGBrgb(81, 102, 170)
HSLhsl(226, 35%, 49%)
HSVhsv(226, 52%, 67%)
CMYKcmyk(52.4%, 40%, 0%, 33.3%)
CIE-LABlab(44.45, 12.00, -38.94)
CIE-LCHlch(44.45, 40.75, 287.13°)
OKLaboklab(52.54% -0.0012 -0.1102)
OKLCHoklch(52.54% 0.11 269.4)
XYZxyz(15.3980, 14.1533, 39.9429)
Luminance0.1415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166AA #AA9551
analogous
#5193AA #5166AA #6951AA
triadic
#5166AA #AA5166 #66AA51
tetradic
#5166AA #AA5193 #AA9551 #51AA69
square
#5166AA #AA5193 #AA9551 #51AA69
split-complementary
#5166AA #AA6951 #93AA51
monochromatic
#2A3457 #3D4D81 #5166AA #798ABF #A2AED3

Accessibility & contrast

On white

5.48
#5166AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5166AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5166AA#FFFFFF#000000##FFFFFF
##5166AA1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6DAD
Deuteranopia (green-blind)
#4165A9
Tritanopia (blue-blind)
#287580
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5166aa;
/* rgb */ color: rgb(81, 102, 170);
/* oklch */ color: oklch(52.5% 0.110 269.4);
Tailwind
colors: {
  custom: {
    50: '#8891c3',
    500: '#5166aa',
    950: '#000000',
  },
}
SCSS
$custom: #5166aa;
$custom-light: #8891c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5166aa",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 170
  },
  "hsl": {
    "h": 225.843,
    "s": 35.458,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5254,
    "c": 0.11026,
    "h": 269.4
  },
  "luminance": 0.14154
}

Semantic roles & 50–950 ramp

primary
#5166AA
secondary
#C0B697
accent
#B15CCB
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C12
muted
#7D7D81

Preview Lab

Preview with #5166AA

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

Preview Lab → · Contrast checker → · Palette generator →

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