#5159E5#5159E5

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

Color values

HEX#5159E5
RGBrgb(81, 89, 229)
HSLhsl(237, 74%, 61%)
HSVhsv(237, 65%, 90%)
CMYKcmyk(64.6%, 61.1%, 0%, 10.2%)
CIE-LABlab(45.01, 39.79, -72.07)
CIE-LCHlch(45.01, 82.33, 298.90°)
OKLaboklab(54.2% 0.0165 -0.2077)
OKLCHoklch(54.2% 0.208 274.5)
XYZxyz(21.1039, 14.5494, 75.8097)
Luminance0.1455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159E5 #E5DD51
analogous
#51A3E5 #5159E5 #9351E5
triadic
#5159E5 #E55159 #59E551
tetradic
#5159E5 #E551A3 #E5DD51 #51E593
square
#5159E5 #E551A3 #E5DD51 #51E593
split-complementary
#5159E5 #E59351 #A3E551
monochromatic
#1820A3 #202AD8 #5159E5 #868CED #BBBFF5

Accessibility & contrast

On white

5.37
#5159E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5159E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159E5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159E5#FFFFFF#000000##FFFFFF
##5159E51.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071EA
Deuteranopia (green-blind)
#0064E2
Tritanopia (blue-blind)
#007C97
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5159e5;
/* rgb */ color: rgb(81, 89, 229);
/* oklch */ color: oklch(54.2% 0.208 274.5);
Tailwind
colors: {
  custom: {
    50: '#9288ee',
    500: '#5159e5',
    950: '#000000',
  },
}
SCSS
$custom: #5159e5;
$custom-light: #9288ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5159e5",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 229
  },
  "hsl": {
    "h": 236.757,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.542,
    "c": 0.20837,
    "h": 274.5
  },
  "luminance": 0.14551
}

Semantic roles & 50–950 ramp

primary
#5159E5
secondary
#E5E2AD
accent
#CB0FD6
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5159E5

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

Preview Lab → · Contrast checker → · Palette generator →

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