#5166E5#5166E5

#5166E5 is a mid, vivid blue. Relative luminance 0.169; OKLCH L 56.5% C 0.193 H 271.7°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5166E5
RGBrgb(81, 102, 229)
HSLhsl(231, 74%, 61%)
HSVhsv(231, 65%, 90%)
CMYKcmyk(64.6%, 55.5%, 0%, 10.2%)
CIE-LABlab(48.14, 31.83, -66.98)
CIE-LCHlch(48.14, 74.15, 295.42°)
OKLaboklab(56.52% 0.0058 -0.1926)
OKLCHoklch(56.52% 0.193 271.7)
XYZxyz(22.2828, 16.9072, 76.2027)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5166E5 #E5D051
analogous
#51B0E5 #5166E5 #8651E5
triadic
#5166E5 #E55166 #66E551
tetradic
#5166E5 #E551B0 #E5D051 #51E586
square
#5166E5 #E551B0 #E5D051 #51E586
split-complementary
#5166E5 #E58651 #B0E551
monochromatic
#182CA3 #203AD8 #5166E5 #8695ED #BBC4F5

Accessibility & contrast

On white

4.79
#5166E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5166E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5166E5
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5166E5#FFFFFF#000000##FFFFFF
##5166E51.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079E9
Deuteranopia (green-blind)
#006CE2
Tritanopia (blue-blind)
#00859C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5166e5;
/* rgb */ color: rgb(81, 102, 229);
/* oklch */ color: oklch(56.5% 0.193 271.7);
Tailwind
colors: {
  custom: {
    50: '#9191ee',
    500: '#5166e5',
    950: '#000000',
  },
}
SCSS
$custom: #5166e5;
$custom-light: #9191ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5166e5",
  "rgb": {
    "r": 81,
    "g": 102,
    "b": 229
  },
  "hsl": {
    "h": 231.486,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56524,
    "c": 0.1927,
    "h": 271.7
  },
  "luminance": 0.16909
}

Semantic roles & 50–950 ramp

primary
#5166E5
secondary
#E5DDAD
accent
#BA0FD6
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5166E5

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

Preview Lab → · Contrast checker → · Palette generator →

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