#5168E9#5168E9

#5168E9 is a mid, vivid blue. Relative luminance 0.175; OKLCH L 57.2% C 0.196 H 271.2°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5168E9
RGBrgb(81, 104, 233)
HSLhsl(231, 78%, 62%)
HSVhsv(231, 65%, 91%)
CMYKcmyk(65.2%, 55.4%, 0%, 8.6%)
CIE-LABlab(48.92, 31.95, -67.97)
CIE-LCHlch(48.92, 75.10, 295.18°)
OKLaboklab(57.2% 0.0042 -0.1955)
OKLCHoklch(57.2% 0.196 271.2)
XYZxyz(23.0467, 17.5311, 79.2443)
Luminance0.1753 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168E9 #E9D251
analogous
#51B4E9 #5168E9 #8651E9
triadic
#5168E9 #E95168 #68E951
tetradic
#5168E9 #E951B4 #E9D251 #51E986
square
#5168E9 #E951B4 #E9D251 #51E986
split-complementary
#5168E9 #E98651 #B4E951
monochromatic
#162CAA #1C3AE0 #5168E9 #8797F0 #BEC6F7

Accessibility & contrast

On white

4.66
#5168E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#5168E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5168E9
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168E9#FFFFFF#000000##FFFFFF
##5168E91.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007BED
Deuteranopia (green-blind)
#006EE6
Tritanopia (blue-blind)
#00879E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5168e9;
/* rgb */ color: rgb(81, 104, 233);
/* oklch */ color: oklch(57.2% 0.196 271.2);
Tailwind
colors: {
  custom: {
    50: '#9292f1',
    500: '#5168e9',
    950: '#000000',
  },
}
SCSS
$custom: #5168e9;
$custom-light: #9292f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5168e9",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 233
  },
  "hsl": {
    "h": 230.921,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.57196,
    "c": 0.19553,
    "h": 271.2
  },
  "luminance": 0.17533
}

Semantic roles & 50–950 ramp

primary
#5168E9
secondary
#E7DFAF
accent
#BB0CDA
background
#F9F9FE
surface
#F2F1FD
border
#CCCBD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5168E9

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

Preview Lab → · Contrast checker → · Palette generator →

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