#5159E7#5159E7

#5159E7 is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.4% C 0.211 H 274.5°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5159E7
RGBrgb(81, 89, 231)
HSLhsl(237, 76%, 61%)
HSVhsv(237, 65%, 91%)
CMYKcmyk(64.9%, 61.5%, 0%, 9.4%)
CIE-LABlab(45.17, 40.45, -72.95)
CIE-LCHlch(45.17, 83.41, 299.01°)
OKLaboklab(54.36% 0.0164 -0.2103)
OKLCHoklch(54.36% 0.211 274.5)
XYZxyz(21.3848, 14.6617, 77.2889)
Luminance0.1466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159E7 #E7DF51
analogous
#51A4E7 #5159E7 #9451E7
triadic
#5159E7 #E75159 #59E751
tetradic
#5159E7 #E751A4 #E7DF51 #51E794
square
#5159E7 #E751A4 #E7DF51 #51E794
split-complementary
#5159E7 #E79451 #A4E751
monochromatic
#171FA7 #1E29DC #5159E7 #878CEE #BDC0F6

Accessibility & contrast

On white

5.34
#5159E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#5159E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159E7
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159E7#FFFFFF#000000##FFFFFF
##5159E71.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EC
Deuteranopia (green-blind)
#0064E4
Tritanopia (blue-blind)
#007D98
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5159e7;
/* rgb */ color: rgb(81, 89, 231);
/* oklch */ color: oklch(54.4% 0.211 274.5);
Tailwind
colors: {
  custom: {
    50: '#9288f0',
    500: '#5159e7',
    950: '#000000',
  },
}
SCSS
$custom: #5159e7;
$custom-light: #9288f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5159e7",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 231
  },
  "hsl": {
    "h": 236.8,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.54364,
    "c": 0.21092,
    "h": 274.5
  },
  "luminance": 0.14664
}

Semantic roles & 50–950 ramp

primary
#5159E7
secondary
#E6E3AE
accent
#CD0ED8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5159E7

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

Preview Lab → · Contrast checker → · Palette generator →

#5159E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva