#5159E6#5159E6

#5159E6 is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.3% C 0.210 H 274.5°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5159E6
RGBrgb(81, 89, 230)
HSLhsl(237, 75%, 61%)
HSVhsv(237, 65%, 90%)
CMYKcmyk(64.8%, 61.3%, 0%, 9.8%)
CIE-LABlab(45.09, 40.12, -72.51)
CIE-LCHlch(45.09, 82.87, 298.96°)
OKLaboklab(54.28% 0.0165 -0.209)
OKLCHoklch(54.28% 0.21 274.5)
XYZxyz(21.2439, 14.6054, 76.5472)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159E6 #E6DE51
analogous
#51A3E6 #5159E6 #9451E6
triadic
#5159E6 #E65159 #59E651
tetradic
#5159E6 #E651A3 #E6DE51 #51E694
square
#5159E6 #E651A3 #E6DE51 #51E694
split-complementary
#5159E6 #E69451 #A3E651
monochromatic
#181FA5 #1F29DA #5159E6 #878CEE #BCBFF5

Accessibility & contrast

On white

5.36
#5159E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5159E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159E6
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159E6#FFFFFF#000000##FFFFFF
##5159E61.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EB
Deuteranopia (green-blind)
#0064E3
Tritanopia (blue-blind)
#007D97
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5159e6;
/* rgb */ color: rgb(81, 89, 230);
/* oklch */ color: oklch(54.3% 0.210 274.5);
Tailwind
colors: {
  custom: {
    50: '#9288ef',
    500: '#5159e6',
    950: '#000000',
  },
}
SCSS
$custom: #5159e6;
$custom-light: #9288ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5159e6",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 230
  },
  "hsl": {
    "h": 236.779,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.54281,
    "c": 0.20964,
    "h": 274.5
  },
  "luminance": 0.14607
}

Semantic roles & 50–950 ramp

primary
#5159E6
secondary
#E5E2AD
accent
#CC0ED7
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5159E6

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

Preview Lab → · Contrast checker → · Palette generator →

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