#5166FF#5166FF

#5166FF is a mid, highly saturated blue. Relative luminance 0.185; OKLCH L 58.6% C 0.226 H 271.5°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#5166FF
RGBrgb(81, 102, 255)
HSLhsl(233, 100%, 66%)
HSVhsv(233, 68%, 100%)
CMYKcmyk(68.2%, 60%, 0%, 0%)
CIE-LABlab(50.06, 40.61, -78.39)
CIE-LCHlch(50.06, 88.29, 297.39°)
OKLaboklab(58.55% 0.0059 -0.2262)
OKLCHoklch(58.55% 0.226 271.5)
XYZxyz(26.1886, 18.4695, 96.7732)
Luminance0.1847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166FF #FFEA51
analogous
#51BDFF #5166FF #9351FF
triadic
#5166FF #FF5166 #66FF51
tetradic
#5166FF #FF51BD #FFEA51 #51FF93
square
#5166FF #FF51BD #FFEA51 #51FF93
split-complementary
#5166FF #FF9351 #BDFF51
monochromatic
#001AD6 #1430FF #5166FF #8E9CFF #CBD2FF

Accessibility & contrast

On white

4.47
#5166FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#5166FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5166FF
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166FF#FFFFFF#000000##000000
##5166FF1.004.474.694.69
#FFFFFF4.471.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFF
Deuteranopia (green-blind)
#006FFC
Tritanopia (blue-blind)
#008DA9
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5166ff;
/* rgb */ color: rgb(81, 102, 255);
/* oklch */ color: oklch(58.6% 0.226 271.5);
Tailwind
colors: {
  custom: {
    50: '#9691ff',
    500: '#5166ff',
    950: '#000000',
  },
}
SCSS
$custom: #5166ff;
$custom-light: #9691ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5166ff",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 255
  },
  "hsl": {
    "h": 232.759,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.58551,
    "c": 0.22624,
    "h": 271.5
  },
  "luminance": 0.18472
}

Semantic roles & 50–950 ramp

primary
#5166FF
secondary
#F3ECB9
accent
#CA00E6
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C18
muted
#7F7D86

Preview Lab

Preview with #5166FF

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

Preview Lab → · Contrast checker → · Palette generator →

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