#5166B7#5166B7

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

Color values

HEX#5166B7
RGBrgb(81, 102, 183)
HSLhsl(228, 41%, 52%)
HSVhsv(228, 56%, 72%)
CMYKcmyk(55.7%, 44.3%, 0%, 28.2%)
CIE-LABlab(45.18, 16.28, -45.39)
CIE-LCHlch(45.18, 48.23, 289.73°)
OKLaboklab(53.33% 0.0013 -0.1291)
OKLCHoklch(53.33% 0.129 270.6)
XYZxyz(16.6891, 14.6698, 46.7427)
Luminance0.1467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166B7 #B7A251
analogous
#5199B7 #5166B7 #6F51B7
triadic
#5166B7 #B75166 #66B751
tetradic
#5166B7 #B75199 #B7A251 #51B76F
square
#5166B7 #B75199 #B7A251 #51B76F
split-complementary
#5166B7 #B76F51 #99B751
monochromatic
#293664 #3B4D8F #5166B7 #7C8CC9 #A8B2DB

Accessibility & contrast

On white

5.34
#5166B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5166B7#FFFFFF#000000##FFFFFF
##5166B71.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4370BA
Deuteranopia (green-blind)
#3667B5
Tritanopia (blue-blind)
#177885
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5166b7;
/* rgb */ color: rgb(81, 102, 183);
/* oklch */ color: oklch(53.3% 0.129 270.6);
Tailwind
colors: {
  custom: {
    50: '#8991cd',
    500: '#5166b7',
    950: '#000000',
  },
}
SCSS
$custom: #5166b7;
$custom-light: #8991cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5166b7",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 183
  },
  "hsl": {
    "h": 227.647,
    "s": 41.463,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53334,
    "c": 0.12915,
    "h": 270.6
  },
  "luminance": 0.14671
}

Semantic roles & 50–950 ramp

primary
#5166B7
secondary
#C8BF9C
accent
#B857D1
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C13
muted
#7D7D82

Preview Lab

Preview with #5166B7

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

Preview Lab → · Contrast checker → · Palette generator →

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