#5166CD#5166CD

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

Color values

HEX#5166CD
RGBrgb(81, 102, 205)
HSLhsl(230, 55%, 56%)
HSVhsv(230, 60%, 80%)
CMYKcmyk(60.5%, 50.2%, 0%, 19.6%)
CIE-LABlab(46.52, 23.68, -55.95)
CIE-LCHlch(46.52, 60.75, 292.94°)
OKLaboklab(54.79% 0.0042 -0.1602)
OKLCHoklch(54.79% 0.16 271.5)
XYZxyz(19.1605, 15.6583, 59.7584)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166CD #CDB851
analogous
#51A4CD #5166CD #7A51CD
triadic
#5166CD #CD5166 #66CD51
tetradic
#5166CD #CD51A4 #CDB851 #51CD7A
square
#5166CD #CD51A4 #CDB851 #51CD7A
split-complementary
#5166CD #CD7A51 #A4CD51
monochromatic
#25347F #3247AF #5166CD #8190DB #B0BAE8

Accessibility & contrast

On white

5.08
#5166CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5166CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166CD
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166CD#FFFFFF#000000##FFFFFF
##5166CD1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E74D1
Deuteranopia (green-blind)
#1169CB
Tritanopia (blue-blind)
#007E90
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5166cd;
/* rgb */ color: rgb(81, 102, 205);
/* oklch */ color: oklch(54.8% 0.160 271.5);
Tailwind
colors: {
  custom: {
    50: '#8d91dd',
    500: '#5166cd',
    950: '#000000',
  },
}
SCSS
$custom: #5166cd;
$custom-light: #8d91dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5166cd",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 205
  },
  "hsl": {
    "h": 229.839,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5479,
    "c": 0.16021,
    "h": 271.5
  },
  "luminance": 0.1566
}

Semantic roles & 50–950 ramp

primary
#5166CD
secondary
#D7CEA3
accent
#C549DF
background
#F9F8FD
surface
#F1F0FB
border
#CBCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5166CD

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

Preview Lab → · Contrast checker → · Palette generator →

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