#5166C5#5166C5

#5166C5 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.2% C 0.149 H 271.3°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5166C5
RGBrgb(81, 102, 197)
HSLhsl(229, 50%, 55%)
HSVhsv(229, 59%, 77%)
CMYKcmyk(58.9%, 48.2%, 0%, 22.7%)
CIE-LABlab(46.02, 20.98, -52.16)
CIE-LCHlch(46.02, 56.22, 291.91°)
OKLaboklab(54.25% 0.0033 -0.149)
OKLCHoklch(54.25% 0.149 271.3)
XYZxyz(18.2194, 15.2819, 54.8021)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166C5 #C5B051
analogous
#51A0C5 #5166C5 #7651C5
triadic
#5166C5 #C55166 #66C551
tetradic
#5166C5 #C551A0 #C5B051 #51C576
square
#5166C5 #C551A0 #C5B051 #51C576
split-complementary
#5166C5 #C57651 #A0C551
monochromatic
#273575 #364AA3 #5166C5 #7F8ED4 #ADB7E4

Accessibility & contrast

On white

5.18
#5166C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5166C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166C5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166C5#FFFFFF#000000##FFFFFF
##5166C51.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3772C8
Deuteranopia (green-blind)
#2468C3
Tritanopia (blue-blind)
#007B8C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5166c5;
/* rgb */ color: rgb(81, 102, 197);
/* oklch */ color: oklch(54.2% 0.149 271.3);
Tailwind
colors: {
  custom: {
    50: '#8c91d7',
    500: '#5166c5',
    950: '#000000',
  },
}
SCSS
$custom: #5166c5;
$custom-light: #8c91d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5166c5",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 197
  },
  "hsl": {
    "h": 229.138,
    "s": 50,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54245,
    "c": 0.14906,
    "h": 271.3
  },
  "luminance": 0.15283
}

Semantic roles & 50–950 ramp

primary
#5166C5
secondary
#D1C9A0
accent
#C04EDA
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #5166C5

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

Preview Lab → · Contrast checker → · Palette generator →

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