#5166B2#5166B2

#5166B2 is a mid, vivid blue. Relative luminance 0.145; OKLCH L 53.0% C 0.122 H 270.2°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5166B2
RGBrgb(81, 102, 178)
HSLhsl(227, 39%, 51%)
HSVhsv(227, 54%, 70%)
CMYKcmyk(54.5%, 42.7%, 0%, 30.2%)
CIE-LABlab(44.89, 14.63, -42.93)
CIE-LCHlch(44.89, 45.36, 288.81°)
OKLaboklab(53.02% 0.0004 -0.1219)
OKLCHoklch(53.02% 0.122 270.2)
XYZxyz(16.1780, 14.4653, 44.0504)
Luminance0.1447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166B2 #B29D51
analogous
#5196B2 #5166B2 #6C51B2
triadic
#5166B2 #B25166 #66B251
tetradic
#5166B2 #B25196 #B29D51 #51B26C
square
#5166B2 #B25196 #B29D51 #51B26C
split-complementary
#5166B2 #B26C51 #96B251
monochromatic
#2A355F #3D4D89 #5166B2 #7B8BC5 #A6B1D8

Accessibility & contrast

On white

5.39
#5166B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5166B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5166B2#FFFFFF#000000##FFFFFF
##5166B21.005.393.895.39
#FFFFFF5.391.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#466FB5
Deuteranopia (green-blind)
#3B66B0
Tritanopia (blue-blind)
#1F7783
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5166b2;
/* rgb */ color: rgb(81, 102, 178);
/* oklch */ color: oklch(53.0% 0.122 270.2);
Tailwind
colors: {
  custom: {
    50: '#8991c9',
    500: '#5166b2',
    950: '#000000',
  },
}
SCSS
$custom: #5166b2;
$custom-light: #8991c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5166b2",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 178
  },
  "hsl": {
    "h": 227.01,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.53023,
    "c": 0.12192,
    "h": 270.2
  },
  "luminance": 0.14466
}

Semantic roles & 50–950 ramp

primary
#5166B2
secondary
#C5BC9A
accent
#B559CF
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166B2

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

Preview Lab → · Contrast checker → · Palette generator →

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