#5166CC#5166CC

#5166CC is a mid, vivid blue. Relative luminance 0.156; OKLCH L 54.7% C 0.159 H 271.5°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5166CC
RGBrgb(81, 102, 204)
HSLhsl(230, 55%, 56%)
HSVhsv(230, 60%, 80%)
CMYKcmyk(60.3%, 50%, 0%, 20%)
CIE-LABlab(46.46, 23.34, -55.48)
CIE-LCHlch(46.46, 60.19, 292.82°)
OKLaboklab(54.72% 0.0041 -0.1588)
OKLCHoklch(54.72% 0.159 271.5)
XYZxyz(19.0402, 15.6102, 59.1247)
Luminance0.1561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166CC #CCB751
analogous
#51A3CC #5166CC #7951CC
triadic
#5166CC #CC5166 #66CC51
tetradic
#5166CC #CC51A3 #CCB751 #51CC79
square
#5166CC #CC51A3 #CCB751 #51CC79
split-complementary
#5166CC #CC7951 #A3CC51
monochromatic
#25347E #3348AD #5166CC #8090DA #B0B9E8

Accessibility & contrast

On white

5.09
#5166CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#5166CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166CC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166CC#FFFFFF#000000##FFFFFF
##5166CC1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F74D0
Deuteranopia (green-blind)
#1469CA
Tritanopia (blue-blind)
#007D8F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5166cc;
/* rgb */ color: rgb(81, 102, 204);
/* oklch */ color: oklch(54.7% 0.159 271.5);
Tailwind
colors: {
  custom: {
    50: '#8d91dc',
    500: '#5166cc',
    950: '#000000',
  },
}
SCSS
$custom: #5166cc;
$custom-light: #8d91dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5166cc",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 204
  },
  "hsl": {
    "h": 229.756,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54721,
    "c": 0.15883,
    "h": 271.5
  },
  "luminance": 0.15612
}

Semantic roles & 50–950 ramp

primary
#5166CC
secondary
#D6CDA3
accent
#C54ADE
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5166CC

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

Preview Lab → · Contrast checker → · Palette generator →

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