#5166BD#5166BD

#5166BD is a mid, vivid blue. Relative luminance 0.149; OKLCH L 53.7% C 0.138 H 270.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5166BD
RGBrgb(81, 102, 189)
HSLhsl(228, 45%, 53%)
HSVhsv(228, 57%, 74%)
CMYKcmyk(57.1%, 46%, 0%, 25.9%)
CIE-LABlab(45.53, 18.29, -48.32)
CIE-LCHlch(45.53, 51.66, 290.73°)
OKLaboklab(53.72% 0.0022 -0.1377)
OKLCHoklch(53.72% 0.138 270.9)
XYZxyz(17.3270, 14.9249, 50.1020)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166BD #BDA851
analogous
#519CBD #5166BD #7251BD
triadic
#5166BD #BD5166 #66BD51
tetradic
#5166BD #BD519C #BDA851 #51BD72
square
#5166BD #BD519C #BDA851 #51BD72
split-complementary
#5166BD #BD7251 #9CBD51
monochromatic
#29366B #394C97 #5166BD #7D8DCE #AAB4DF

Accessibility & contrast

On white

5.27
#5166BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#5166BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166BD
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166BD#FFFFFF#000000##FFFFFF
##5166BD1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E71C0
Deuteranopia (green-blind)
#2F67BB
Tritanopia (blue-blind)
#077988
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5166bd;
/* rgb */ color: rgb(81, 102, 189);
/* oklch */ color: oklch(53.7% 0.138 270.9);
Tailwind
colors: {
  custom: {
    50: '#8a91d1',
    500: '#5166bd',
    950: '#000000',
  },
}
SCSS
$custom: #5166bd;
$custom-light: #8a91d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5166bd",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 189
  },
  "hsl": {
    "h": 228.333,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53717,
    "c": 0.13774,
    "h": 270.9
  },
  "luminance": 0.14926
}

Semantic roles & 50–950 ramp

primary
#5166BD
secondary
#CCC39E
accent
#BB53D5
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #5166BD

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

Preview Lab → · Contrast checker → · Palette generator →

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