#5166B8#5166B8

#5166B8 is a mid, vivid blue. Relative luminance 0.147; OKLCH L 53.4% C 0.131 H 270.6°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5166B8
RGBrgb(81, 102, 184)
HSLhsl(228, 42%, 52%)
HSVhsv(228, 56%, 72%)
CMYKcmyk(56%, 44.6%, 0%, 27.8%)
CIE-LABlab(45.24, 16.62, -45.88)
CIE-LCHlch(45.24, 48.80, 289.91°)
OKLaboklab(53.4% 0.0015 -0.1306)
OKLCHoklch(53.4% 0.131 270.6)
XYZxyz(16.7936, 14.7115, 47.2928)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166B8 #B8A351
analogous
#519AB8 #5166B8 #7051B8
triadic
#5166B8 #B85166 #66B851
tetradic
#5166B8 #B8519A #B8A351 #51B870
square
#5166B8 #B8519A #B8A351 #51B870
split-complementary
#5166B8 #B87051 #9AB851
monochromatic
#293665 #3B4D91 #5166B8 #7C8CCA #A8B2DB

Accessibility & contrast

On white

5.33
#5166B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5166B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5166B8#FFFFFF#000000##FFFFFF
##5166B81.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4270BB
Deuteranopia (green-blind)
#3567B6
Tritanopia (blue-blind)
#157886
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5166b8;
/* rgb */ color: rgb(81, 102, 184);
/* oklch */ color: oklch(53.4% 0.131 270.6);
Tailwind
colors: {
  custom: {
    50: '#8a91ce',
    500: '#5166b8',
    950: '#000000',
  },
}
SCSS
$custom: #5166b8;
$custom-light: #8a91ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5166b8",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 184
  },
  "hsl": {
    "h": 227.767,
    "s": 42.041,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53397,
    "c": 0.13059,
    "h": 270.6
  },
  "luminance": 0.14713
}

Semantic roles & 50–950 ramp

primary
#5166B8
secondary
#C9C09C
accent
#B956D2
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166B8

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

Preview Lab → · Contrast checker → · Palette generator →

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