#5168EB#5168EB

#5168EB is a mid, vivid blue. Relative luminance 0.176; OKLCH L 57.3% C 0.198 H 271.2°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#5168EB
RGBrgb(81, 104, 235)
HSLhsl(231, 79%, 62%)
HSVhsv(231, 66%, 92%)
CMYKcmyk(65.5%, 55.7%, 0%, 7.8%)
CIE-LABlab(49.06, 32.63, -68.86)
CIE-LCHlch(49.06, 76.20, 295.36°)
OKLaboklab(57.35% 0.0043 -0.1981)
OKLCHoklch(57.35% 0.198 271.2)
XYZxyz(23.3340, 17.6460, 80.7575)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168EB #EBD451
analogous
#51B5EB #5168EB #8751EB
triadic
#5168EB #EB5168 #68EB51
tetradic
#5168EB #EB51B5 #EBD451 #51EB87
square
#5168EB #EB51B5 #EBD451 #51EB87
split-complementary
#5168EB #EB8751 #B5EB51
monochromatic
#142BAE #1A38E5 #5168EB #8898F1 #BFC7F8

Accessibility & contrast

On white

4.64
#5168EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#5168EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5168EB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168EB#FFFFFF#000000##FFFFFF
##5168EB1.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007CEF
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#00889F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5168eb;
/* rgb */ color: rgb(81, 104, 235);
/* oklch */ color: oklch(57.3% 0.198 271.2);
Tailwind
colors: {
  custom: {
    50: '#9292f2',
    500: '#5168eb',
    950: '#000000',
  },
}
SCSS
$custom: #5168eb;
$custom-light: #9292f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5168eb",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 235
  },
  "hsl": {
    "h": 231.039,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57347,
    "c": 0.19817,
    "h": 271.2
  },
  "luminance": 0.17648
}

Semantic roles & 50–950 ramp

primary
#5168EB
secondary
#E8E0B0
accent
#BC0ADC
background
#F9F9FE
surface
#F2F1FD
border
#CCCBD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5168EB

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

Preview Lab → · Contrast checker → · Palette generator →

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