#5166CB#5166CB

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

Color values

HEX#5166CB
RGBrgb(81, 102, 203)
HSLhsl(230, 54%, 56%)
HSVhsv(230, 60%, 80%)
CMYKcmyk(60.1%, 49.8%, 0%, 20.4%)
CIE-LABlab(46.39, 23.00, -55.01)
CIE-LCHlch(46.39, 59.62, 292.69°)
OKLaboklab(54.65% 0.004 -0.1574)
OKLCHoklch(54.65% 0.157 271.5)
XYZxyz(18.9206, 15.5623, 58.4951)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166CB #CBB651
analogous
#51A3CB #5166CB #7951CB
triadic
#5166CB #CB5166 #66CB51
tetradic
#5166CB #CB51A3 #CBB651 #51CB79
square
#5166CB #CB51A3 #CBB651 #51CB79
split-complementary
#5166CB #CB7951 #A3CB51
monochromatic
#25347C #3348AC #5166CB #808FD9 #AFB9E7

Accessibility & contrast

On white

5.11
#5166CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#5166CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166CB
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166CB#FFFFFF#000000##FFFFFF
##5166CB1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3074CF
Deuteranopia (green-blind)
#1769C9
Tritanopia (blue-blind)
#007D8F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5166cb;
/* rgb */ color: rgb(81, 102, 203);
/* oklch */ color: oklch(54.7% 0.157 271.5);
Tailwind
colors: {
  custom: {
    50: '#8c91db',
    500: '#5166cb',
    950: '#000000',
  },
}
SCSS
$custom: #5166cb;
$custom-light: #8c91db;
$custom-dark: #000000;
JSON
{
  "hex": "#5166cb",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 203
  },
  "hsl": {
    "h": 229.672,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54652,
    "c": 0.15744,
    "h": 271.5
  },
  "luminance": 0.15564
}

Semantic roles & 50–950 ramp

primary
#5166CB
secondary
#D5CDA3
accent
#C44ADD
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5166CB

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

Preview Lab → · Contrast checker → · Palette generator →

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