#5166C1#5166C1

#5166C1 is a mid, vivid blue. Relative luminance 0.151; OKLCH L 54.0% C 0.143 H 271.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5166C1
RGBrgb(81, 102, 193)
HSLhsl(229, 47%, 54%)
HSVhsv(229, 58%, 76%)
CMYKcmyk(58%, 47.2%, 0%, 24.3%)
CIE-LABlab(45.77, 19.63, -50.25)
CIE-LCHlch(45.77, 53.94, 291.34°)
OKLaboklab(53.98% 0.0028 -0.1434)
OKLCHoklch(53.98% 0.143 271.1)
XYZxyz(17.7672, 15.1010, 52.4202)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166C1 #C1AC51
analogous
#519EC1 #5166C1 #7451C1
triadic
#5166C1 #C15166 #66C151
tetradic
#5166C1 #C1519E #C1AC51 #51C174
square
#5166C1 #C1519E #C1AC51 #51C174
split-complementary
#5166C1 #C17451 #9EC151
monochromatic
#283570 #384B9D #5166C1 #7E8ED1 #ABB5E1

Accessibility & contrast

On white

5.22
#5166C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#5166C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166C1
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166C1#FFFFFF#000000##FFFFFF
##5166C11.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B72C4
Deuteranopia (green-blind)
#2A68BF
Tritanopia (blue-blind)
#007A8A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5166c1;
/* rgb */ color: rgb(81, 102, 193);
/* oklch */ color: oklch(54.0% 0.143 271.1);
Tailwind
colors: {
  custom: {
    50: '#8b91d4',
    500: '#5166c1',
    950: '#000000',
  },
}
SCSS
$custom: #5166c1;
$custom-light: #8b91d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5166c1",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 193
  },
  "hsl": {
    "h": 228.75,
    "s": 47.458,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53979,
    "c": 0.14342,
    "h": 271.1
  },
  "luminance": 0.15102
}

Semantic roles & 50–950 ramp

primary
#5166C1
secondary
#CFC69F
accent
#BE51D7
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #5166C1

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

Preview Lab → · Contrast checker → · Palette generator →

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