#5159E8#5159E8

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

Color values

HEX#5159E8
RGBrgb(81, 89, 232)
HSLhsl(237, 77%, 61%)
HSVhsv(237, 65%, 91%)
CMYKcmyk(65.1%, 61.6%, 0%, 9%)
CIE-LABlab(45.25, 40.78, -73.38)
CIE-LCHlch(45.25, 83.96, 299.06°)
OKLaboklab(54.45% 0.0164 -0.2116)
OKLCHoklch(54.45% 0.212 274.4)
XYZxyz(21.5264, 14.7184, 78.0348)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159E8 #E8E051
analogous
#51A5E8 #5159E8 #9551E8
triadic
#5159E8 #E85159 #59E851
tetradic
#5159E8 #E851A5 #E8E051 #51E895
square
#5159E8 #E851A5 #E8E051 #51E895
split-complementary
#5159E8 #E89551 #A5E851
monochromatic
#161EA8 #1D28DE #5159E8 #878DEF #BDC0F6

Accessibility & contrast

On white

5.32
#5159E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5159E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159E8
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159E8#FFFFFF#000000##FFFFFF
##5159E81.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5159e8;
/* rgb */ color: rgb(81, 89, 232);
/* oklch */ color: oklch(54.4% 0.212 274.4);
Tailwind
colors: {
  custom: {
    50: '#9288f0',
    500: '#5159e8',
    950: '#000000',
  },
}
SCSS
$custom: #5159e8;
$custom-light: #9288f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5159e8",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 232
  },
  "hsl": {
    "h": 236.821,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.54446,
    "c": 0.21219,
    "h": 274.4
  },
  "luminance": 0.1472
}

Semantic roles & 50–950 ramp

primary
#5159E8
secondary
#E7E4AE
accent
#CE0DD9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5159E8

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

Preview Lab → · Contrast checker → · Palette generator →

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