#5166C2#5166C2

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

Color values

HEX#5166C2
RGBrgb(81, 102, 194)
HSLhsl(229, 48%, 54%)
HSVhsv(229, 58%, 76%)
CMYKcmyk(58.2%, 47.4%, 0%, 23.9%)
CIE-LABlab(45.83, 19.97, -50.73)
CIE-LCHlch(45.83, 54.52, 291.48°)
OKLaboklab(54.05% 0.0029 -0.1448)
OKLCHoklch(54.05% 0.145 271.2)
XYZxyz(17.8791, 15.1457, 53.0097)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166C2 #C2AD51
analogous
#519FC2 #5166C2 #7551C2
triadic
#5166C2 #C25166 #66C251
tetradic
#5166C2 #C2519F #C2AD51 #51C275
square
#5166C2 #C2519F #C2AD51 #51C275
split-complementary
#5166C2 #C27551 #9FC251
monochromatic
#283571 #374B9E #5166C2 #7E8ED2 #ACB6E2

Accessibility & contrast

On white

5.21
#5166C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#5166C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166C2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166C2#FFFFFF#000000##FFFFFF
##5166C21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A72C5
Deuteranopia (green-blind)
#2868C0
Tritanopia (blue-blind)
#007B8B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5166c2;
/* rgb */ color: rgb(81, 102, 194);
/* oklch */ color: oklch(54.0% 0.145 271.2);
Tailwind
colors: {
  custom: {
    50: '#8b91d5',
    500: '#5166c2',
    950: '#000000',
  },
}
SCSS
$custom: #5166c2;
$custom-light: #8b91d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5166c2",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 194
  },
  "hsl": {
    "h": 228.85,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54045,
    "c": 0.14484,
    "h": 271.2
  },
  "luminance": 0.15147
}

Semantic roles & 50–950 ramp

primary
#5166C2
secondary
#D0C79F
accent
#BE50D8
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #5166C2

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

Preview Lab → · Contrast checker → · Palette generator →

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