#5166CF#5166CF

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

Color values

HEX#5166CF
RGBrgb(81, 102, 207)
HSLhsl(230, 57%, 56%)
HSVhsv(230, 61%, 81%)
CMYKcmyk(60.9%, 50.7%, 0%, 18.8%)
CIE-LABlab(46.65, 24.36, -56.89)
CIE-LCHlch(46.65, 61.88, 293.18°)
OKLaboklab(54.93% 0.0044 -0.1629)
OKLCHoklch(54.93% 0.163 271.5)
XYZxyz(19.4034, 15.7555, 61.0380)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166CF #CFBA51
analogous
#51A5CF #5166CF #7B51CF
triadic
#5166CF #CF5166 #66CF51
tetradic
#5166CF #CF51A5 #CFBA51 #51CF7B
square
#5166CF #CF51A5 #CFBA51 #51CF7B
split-complementary
#5166CF #CF7B51 #A5CF51
monochromatic
#243382 #3146B2 #5166CF #8190DC #B1BAE9

Accessibility & contrast

On white

5.06
#5166CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5166CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166CF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166CF#FFFFFF#000000##FFFFFF
##5166CF1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B74D3
Deuteranopia (green-blind)
#0869CD
Tritanopia (blue-blind)
#007E91
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5166cf;
/* rgb */ color: rgb(81, 102, 207);
/* oklch */ color: oklch(54.9% 0.163 271.5);
Tailwind
colors: {
  custom: {
    50: '#8d91de',
    500: '#5166cf',
    950: '#000000',
  },
}
SCSS
$custom: #5166cf;
$custom-light: #8d91de;
$custom-dark: #000000;
JSON
{
  "hex": "#5166cf",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 207
  },
  "hsl": {
    "h": 230,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54929,
    "c": 0.16298,
    "h": 271.5
  },
  "luminance": 0.15757
}

Semantic roles & 50–950 ramp

primary
#5166CF
secondary
#D8CFA4
accent
#C748E0
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5166CF

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

Preview Lab → · Contrast checker → · Palette generator →

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