#5166B6#5166B6

#5166B6 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 53.3% C 0.128 H 270.5°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5166B6
RGBrgb(81, 102, 182)
HSLhsl(228, 41%, 52%)
HSVhsv(228, 55%, 71%)
CMYKcmyk(55.5%, 44%, 0%, 28.6%)
CIE-LABlab(45.12, 15.95, -44.90)
CIE-LCHlch(45.12, 47.65, 289.56°)
OKLaboklab(53.27% 0.0011 -0.1277)
OKLCHoklch(53.27% 0.128 270.5)
XYZxyz(16.5854, 14.6283, 46.1965)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166B6 #B6A151
analogous
#5199B6 #5166B6 #6F51B6
triadic
#5166B6 #B65166 #66B651
tetradic
#5166B6 #B65199 #B6A151 #51B66F
square
#5166B6 #B65199 #B6A151 #51B66F
split-complementary
#5166B6 #B66F51 #99B651
monochromatic
#2A3663 #3C4D8E #5166B6 #7C8CC8 #A7B2DA

Accessibility & contrast

On white

5.35
#5166B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5166B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5166B6#FFFFFF#000000##FFFFFF
##5166B61.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436FB9
Deuteranopia (green-blind)
#3767B4
Tritanopia (blue-blind)
#197885
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5166b6;
/* rgb */ color: rgb(81, 102, 182);
/* oklch */ color: oklch(53.3% 0.128 270.5);
Tailwind
colors: {
  custom: {
    50: '#8991cc',
    500: '#5166b6',
    950: '#000000',
  },
}
SCSS
$custom: #5166b6;
$custom-light: #8991cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5166b6",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 182
  },
  "hsl": {
    "h": 227.525,
    "s": 40.891,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53271,
    "c": 0.1277,
    "h": 270.5
  },
  "luminance": 0.14629
}

Semantic roles & 50–950 ramp

primary
#5166B6
secondary
#C8BE9B
accent
#B757D1
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166B6

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

Preview Lab → · Contrast checker → · Palette generator →

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