#5166D3#5166D3

#5166D3 is a mid, vivid blue. Relative luminance 0.160; OKLCH L 55.2% C 0.168 H 271.6°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5166D3
RGBrgb(81, 102, 211)
HSLhsl(230, 60%, 57%)
HSVhsv(230, 62%, 83%)
CMYKcmyk(61.6%, 51.7%, 0%, 17.3%)
CIE-LABlab(46.91, 25.71, -58.75)
CIE-LCHlch(46.91, 64.13, 293.64°)
OKLaboklab(55.21% 0.0047 -0.1684)
OKLCHoklch(55.21% 0.168 271.6)
XYZxyz(19.8987, 15.9536, 63.6461)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166D3 #D3BE51
analogous
#51A7D3 #5166D3 #7D51D3
triadic
#5166D3 #D35166 #66D351
tetradic
#5166D3 #D351A7 #D3BE51 #51D37D
square
#5166D3 #D351A7 #D3BE51 #51D37D
split-complementary
#5166D3 #D37D51 #A7D351
monochromatic
#223387 #2F45B8 #5166D3 #8291DF #B3BCEC

Accessibility & contrast

On white

5.01
#5166D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5166D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166D3
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166D3#FFFFFF#000000##FFFFFF
##5166D31.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2575D7
Deuteranopia (green-blind)
#006AD1
Tritanopia (blue-blind)
#007F93
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5166d3;
/* rgb */ color: rgb(81, 102, 211);
/* oklch */ color: oklch(55.2% 0.168 271.6);
Tailwind
colors: {
  custom: {
    50: '#8e91e1',
    500: '#5166d3',
    950: '#000000',
  },
}
SCSS
$custom: #5166d3;
$custom-light: #8e91e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5166d3",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 211
  },
  "hsl": {
    "h": 230.308,
    "s": 59.633,
    "l": 57.255
  },
  "oklch": {
    "l": 0.5521,
    "c": 0.16848,
    "h": 271.6
  },
  "luminance": 0.15955
}

Semantic roles & 50–950 ramp

primary
#5166D3
secondary
#DAD2A6
accent
#C945E3
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0D0C15
muted
#7E7D83

Preview Lab

Preview with #5166D3

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

Preview Lab → · Contrast checker → · Palette generator →

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