#5166B4#5166B4

#5166B4 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.1% C 0.125 H 270.4°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5166B4
RGBrgb(81, 102, 180)
HSLhsl(227, 40%, 51%)
HSVhsv(227, 55%, 71%)
CMYKcmyk(55%, 43.3%, 0%, 29.4%)
CIE-LABlab(45.01, 15.29, -43.92)
CIE-LCHlch(45.01, 46.50, 289.19°)
OKLaboklab(53.15% 0.0008 -0.1248)
OKLCHoklch(53.15% 0.125 270.4)
XYZxyz(16.3802, 14.5462, 45.1157)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166B4 #B49F51
analogous
#5197B4 #5166B4 #6D51B4
triadic
#5166B4 #B45166 #66B451
tetradic
#5166B4 #B45197 #B49F51 #51B46D
square
#5166B4 #B45197 #B49F51 #51B46D
split-complementary
#5166B4 #B46D51 #97B451
monochromatic
#2A3561 #3C4D8C #5166B4 #7C8CC6 #A7B1D9

Accessibility & contrast

On white

5.37
#5166B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5166B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5166B4#FFFFFF#000000##FFFFFF
##5166B41.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#456FB7
Deuteranopia (green-blind)
#3966B2
Tritanopia (blue-blind)
#1C7784
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5166b4;
/* rgb */ color: rgb(81, 102, 180);
/* oklch */ color: oklch(53.1% 0.125 270.4);
Tailwind
colors: {
  custom: {
    50: '#8991cb',
    500: '#5166b4',
    950: '#000000',
  },
}
SCSS
$custom: #5166b4;
$custom-light: #8991cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5166b4",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 180
  },
  "hsl": {
    "h": 227.273,
    "s": 39.759,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53146,
    "c": 0.12482,
    "h": 270.4
  },
  "luminance": 0.14547
}

Semantic roles & 50–950 ramp

primary
#5166B4
secondary
#C6BD9B
accent
#B658D0
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166B4

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

Preview Lab → · Contrast checker → · Palette generator →

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