#5166C3#5166C3

#5166C3 is a mid, vivid blue. Relative luminance 0.152; OKLCH L 54.1% C 0.146 H 271.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5166C3
RGBrgb(81, 102, 195)
HSLhsl(229, 49%, 54%)
HSVhsv(229, 58%, 76%)
CMYKcmyk(58.5%, 47.7%, 0%, 23.5%)
CIE-LABlab(45.89, 20.30, -51.21)
CIE-LCHlch(45.89, 55.08, 291.63°)
OKLaboklab(54.11% 0.0031 -0.1462)
OKLCHoklch(54.11% 0.146 271.2)
XYZxyz(17.9918, 15.1908, 53.6032)
Luminance0.1519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166C3 #C3AE51
analogous
#519FC3 #5166C3 #7551C3
triadic
#5166C3 #C35166 #66C351
tetradic
#5166C3 #C3519F #C3AE51 #51C375
square
#5166C3 #C3519F #C3AE51 #51C375
split-complementary
#5166C3 #C37551 #9FC351
monochromatic
#273572 #374AA0 #5166C3 #7F8ED3 #ACB6E2

Accessibility & contrast

On white

5.20
#5166C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#5166C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166C3
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166C3#FFFFFF#000000##FFFFFF
##5166C31.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3972C6
Deuteranopia (green-blind)
#2768C1
Tritanopia (blue-blind)
#007B8B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5166c3;
/* rgb */ color: rgb(81, 102, 195);
/* oklch */ color: oklch(54.1% 0.146 271.2);
Tailwind
colors: {
  custom: {
    50: '#8b91d6',
    500: '#5166c3',
    950: '#000000',
  },
}
SCSS
$custom: #5166c3;
$custom-light: #8b91d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5166c3",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 195
  },
  "hsl": {
    "h": 228.947,
    "s": 48.718,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54111,
    "c": 0.14624,
    "h": 271.2
  },
  "luminance": 0.15192
}

Semantic roles & 50–950 ramp

primary
#5166C3
secondary
#D0C7A0
accent
#BF50D8
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #5166C3

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

Preview Lab → · Contrast checker → · Palette generator →

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