#5166CE#5166CE

#5166CE is a mid, vivid blue. Relative luminance 0.157; OKLCH L 54.9% C 0.162 H 271.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5166CE
RGBrgb(81, 102, 206)
HSLhsl(230, 56%, 56%)
HSVhsv(230, 61%, 81%)
CMYKcmyk(60.7%, 50.5%, 0%, 19.2%)
CIE-LABlab(46.59, 24.02, -56.42)
CIE-LCHlch(46.59, 61.32, 293.06°)
OKLaboklab(54.86% 0.0043 -0.1615)
OKLCHoklch(54.86% 0.162 271.5)
XYZxyz(19.2816, 15.7067, 60.3962)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166CE #CEB951
analogous
#51A5CE #5166CE #7B51CE
triadic
#5166CE #CE5166 #66CE51
tetradic
#5166CE #CE51A5 #CEB951 #51CE7B
square
#5166CE #CE51A5 #CEB951 #51CE7B
split-complementary
#5166CE #CE7B51 #A5CE51
monochromatic
#243480 #3247B0 #5166CE #8190DB #B1BAE9

Accessibility & contrast

On white

5.07
#5166CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#5166CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166CE
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166CE#FFFFFF#000000##FFFFFF
##5166CE1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D74D2
Deuteranopia (green-blind)
#0D69CC
Tritanopia (blue-blind)
#007E90
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5166ce;
/* rgb */ color: rgb(81, 102, 206);
/* oklch */ color: oklch(54.9% 0.162 271.5);
Tailwind
colors: {
  custom: {
    50: '#8d91de',
    500: '#5166ce',
    950: '#000000',
  },
}
SCSS
$custom: #5166ce;
$custom-light: #8d91de;
$custom-dark: #000000;
JSON
{
  "hex": "#5166ce",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 206
  },
  "hsl": {
    "h": 229.92,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54859,
    "c": 0.16161,
    "h": 271.5
  },
  "luminance": 0.15708
}

Semantic roles & 50–950 ramp

primary
#5166CE
secondary
#D7CEA4
accent
#C648DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5166CE

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

Preview Lab → · Contrast checker → · Palette generator →

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