#5166DF#5166DF

#5166DF is a mid, vivid blue. Relative luminance 0.166; OKLCH L 56.1% C 0.185 H 271.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5166DF
RGBrgb(81, 102, 223)
HSLhsl(231, 69%, 60%)
HSVhsv(231, 64%, 87%)
CMYKcmyk(63.7%, 54.3%, 0%, 12.5%)
CIE-LABlab(47.72, 29.79, -64.27)
CIE-LCHlch(47.72, 70.83, 294.87°)
OKLaboklab(56.08% 0.0055 -0.1846)
OKLCHoklch(56.08% 0.185 271.7)
XYZxyz(21.4595, 16.5779, 71.8667)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166DF #DFCA51
analogous
#51ADDF #5166DF #8351DF
triadic
#5166DF #DF5166 #66DF51
tetradic
#5166DF #DF51AD #DFCA51 #51DF83
square
#5166DF #DF51AD #DFCA51 #51DF83
split-complementary
#5166DF #DF8351 #ADDF51
monochromatic
#1C2F99 #263ECD #5166DF #8593E9 #B8C1F2

Accessibility & contrast

On white

4.87
#5166DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#5166DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166DF
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166DF#FFFFFF#000000##FFFFFF
##5166DF1.004.874.324.87
#FFFFFF4.871.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0478E3
Deuteranopia (green-blind)
#006BDD
Tritanopia (blue-blind)
#008399
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5166df;
/* rgb */ color: rgb(81, 102, 223);
/* oklch */ color: oklch(56.1% 0.185 271.7);
Tailwind
colors: {
  custom: {
    50: '#9091ea',
    500: '#5166df',
    950: '#000000',
  },
}
SCSS
$custom: #5166df;
$custom-light: #9091ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5166df",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 223
  },
  "hsl": {
    "h": 231.127,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56077,
    "c": 0.18471,
    "h": 271.7
  },
  "luminance": 0.1658
}

Semantic roles & 50–950 ramp

primary
#5166DF
secondary
#E1D9AA
accent
#D23CEC
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5166DF

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

Preview Lab → · Contrast checker → · Palette generator →

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