#5165E3#5165E3

#5165E3 is a mid, vivid blue. Relative luminance 0.166; OKLCH L 56.2% C 0.191 H 272.0°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5165E3
RGBrgb(81, 101, 227)
HSLhsl(232, 72%, 60%)
HSVhsv(232, 64%, 89%)
CMYKcmyk(64.3%, 55.5%, 0%, 11%)
CIE-LABlab(47.75, 31.77, -66.48)
CIE-LCHlch(47.75, 73.68, 295.54°)
OKLaboklab(56.19% 0.0066 -0.1912)
OKLCHoklch(56.19% 0.191 272)
XYZxyz(21.9075, 16.6008, 74.7079)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5165E3 #E3CF51
analogous
#51AEE3 #5165E3 #8651E3
triadic
#5165E3 #E35165 #65E351
tetradic
#5165E3 #E351AE #E3CF51 #51E386
square
#5165E3 #E351AE #E3CF51 #51E386
split-complementary
#5165E3 #E38651 #AEE351
monochromatic
#1A2CA0 #223BD5 #5165E3 #8694EB #BAC2F4

Accessibility & contrast

On white

4.86
#5165E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#5165E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5165E3
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5165E3#FFFFFF#000000##FFFFFF
##5165E31.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078E7
Deuteranopia (green-blind)
#006BE0
Tritanopia (blue-blind)
#00839A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5165e3;
/* rgb */ color: rgb(81, 101, 227);
/* oklch */ color: oklch(56.2% 0.191 272.0);
Tailwind
colors: {
  custom: {
    50: '#9190ed',
    500: '#5165e3',
    950: '#000000',
  },
}
SCSS
$custom: #5165e3;
$custom-light: #9190ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5165e3",
  "rgb": {
    "r": 81,
    "g": 101,
    "b": 227
  },
  "hsl": {
    "h": 231.781,
    "s": 72.277,
    "l": 60.392
  },
  "oklch": {
    "l": 0.56187,
    "c": 0.19127,
    "h": 272
  },
  "luminance": 0.16603
}

Semantic roles & 50–950 ramp

primary
#5165E3
secondary
#E4DCAC
accent
#BA11D4
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0C16
muted
#7E7D84

Preview Lab

Preview with #5165E3

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

Preview Lab → · Contrast checker → · Palette generator →

#5165E3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva