#5166BC#5166BC

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

Color values

HEX#5166BC
RGBrgb(81, 102, 188)
HSLhsl(228, 44%, 53%)
HSVhsv(228, 57%, 74%)
CMYKcmyk(56.9%, 45.7%, 0%, 26.3%)
CIE-LABlab(45.47, 17.95, -47.83)
CIE-LCHlch(45.47, 51.09, 290.57°)
OKLaboklab(53.65% 0.0021 -0.1363)
OKLCHoklch(53.65% 0.136 270.9)
XYZxyz(17.2188, 14.8816, 49.5323)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166BC #BCA751
analogous
#519CBC #5166BC #7151BC
triadic
#5166BC #BC5166 #66BC51
tetradic
#5166BC #BC519C #BCA751 #51BC71
square
#5166BC #BC519C #BCA751 #51BC71
split-complementary
#5166BC #BC7151 #9CBC51
monochromatic
#29366A #3A4C96 #5166BC #7D8DCD #A9B4DE

Accessibility & contrast

On white

5.28
#5166BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#5166BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166BC
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166BC#FFFFFF#000000##FFFFFF
##5166BC1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F71BF
Deuteranopia (green-blind)
#3067BA
Tritanopia (blue-blind)
#0B7988
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5166bc;
/* rgb */ color: rgb(81, 102, 188);
/* oklch */ color: oklch(53.7% 0.136 270.9);
Tailwind
colors: {
  custom: {
    50: '#8a91d1',
    500: '#5166bc',
    950: '#000000',
  },
}
SCSS
$custom: #5166bc;
$custom-light: #8a91d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5166bc",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 188
  },
  "hsl": {
    "h": 228.224,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53653,
    "c": 0.13632,
    "h": 270.9
  },
  "luminance": 0.14883
}

Semantic roles & 50–950 ramp

primary
#5166BC
secondary
#CCC29D
accent
#BB54D4
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #5166BC

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

Preview Lab → · Contrast checker → · Palette generator →

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