#5168E4#5168E4

#5168E4 is a mid, vivid blue. Relative luminance 0.173; OKLCH L 56.8% C 0.189 H 271.2°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#5168E4
RGBrgb(81, 104, 228)
HSLhsl(231, 73%, 61%)
HSVhsv(231, 64%, 89%)
CMYKcmyk(64.5%, 54.4%, 0%, 10.6%)
CIE-LABlab(48.57, 30.25, -65.72)
CIE-LCHlch(48.57, 72.34, 294.72°)
OKLaboklab(56.82% 0.004 -0.1889)
OKLCHoklch(56.82% 0.189 271.2)
XYZxyz(22.3425, 17.2494, 75.5358)
Luminance0.1725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168E4 #E4CD51
analogous
#51B2E4 #5168E4 #8351E4
triadic
#5168E4 #E45168 #68E451
tetradic
#5168E4 #E451B2 #E4CD51 #51E483
square
#5168E4 #E451B2 #E4CD51 #51E483
split-complementary
#5168E4 #E48351 #B2E451
monochromatic
#192EA2 #213ED7 #5168E4 #8696EC #BBC4F4

Accessibility & contrast

On white

4.72
#5168E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#5168E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168E4
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168E4#FFFFFF#000000##FFFFFF
##5168E41.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AE8
Deuteranopia (green-blind)
#006DE1
Tritanopia (blue-blind)
#00869C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5168e4;
/* rgb */ color: rgb(81, 104, 228);
/* oklch */ color: oklch(56.8% 0.189 271.2);
Tailwind
colors: {
  custom: {
    50: '#9192ed',
    500: '#5168e4',
    950: '#000000',
  },
}
SCSS
$custom: #5168e4;
$custom-light: #9192ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5168e4",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 228
  },
  "hsl": {
    "h": 230.612,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.56824,
    "c": 0.18892,
    "h": 271.2
  },
  "luminance": 0.17251
}

Semantic roles & 50–950 ramp

primary
#5168E4
secondary
#E4DCAC
accent
#B610D5
background
#F9F9FE
surface
#F2F1FD
border
#CCCBD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5168E4

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

Preview Lab → · Contrast checker → · Palette generator →

#5168E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva