#5166F2#5166F2

#5166F2 is a mid, highly saturated blue. Relative luminance 0.177; OKLCH L 57.5% C 0.210 H 271.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5166F2
RGBrgb(81, 102, 242)
HSLhsl(232, 86%, 63%)
HSVhsv(232, 67%, 95%)
CMYKcmyk(66.5%, 57.9%, 0%, 5.1%)
CIE-LABlab(49.08, 36.23, -72.75)
CIE-LCHlch(49.08, 81.28, 296.47°)
OKLaboklab(57.52% 0.006 -0.2096)
OKLCHoklch(57.52% 0.21 271.6)
XYZxyz(24.1663, 17.6606, 86.1225)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166F2 #F2DD51
analogous
#51B6F2 #5166F2 #8C51F2
triadic
#5166F2 #F25166 #66F251
tetradic
#5166F2 #F251B6 #F2DD51 #51F28C
square
#5166F2 #F251B6 #F2DD51 #51F28C
split-complementary
#5166F2 #F28C51 #B6F251
monochromatic
#0E24BB #1834EE #5166F2 #8A98F6 #C3CAFB

Accessibility & contrast

On white

4.63
#5166F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#5166F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5166F2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166F2#FFFFFF#000000##FFFFFF
##5166F21.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007CF7
Deuteranopia (green-blind)
#006EEF
Tritanopia (blue-blind)
#0089A2
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5166f2;
/* rgb */ color: rgb(81, 102, 242);
/* oklch */ color: oklch(57.5% 0.210 271.6);
Tailwind
colors: {
  custom: {
    50: '#9391f7',
    500: '#5166f2',
    950: '#000000',
  },
}
SCSS
$custom: #5166f2;
$custom-light: #9391f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5166f2",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 242
  },
  "hsl": {
    "h": 232.174,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57519,
    "c": 0.20968,
    "h": 271.6
  },
  "luminance": 0.17663
}

Semantic roles & 50–950 ramp

primary
#5166F2
secondary
#ECE5B3
accent
#C503E3
background
#F9F8FF
surface
#F2F0FF
border
#CCCBD7
text
#0F0C17
muted
#7E7D85

Preview Lab

Preview with #5166F2

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

Preview Lab → · Contrast checker → · Palette generator →

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