#5159E9#5159E9

#5159E9 is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.5% C 0.213 H 274.4°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5159E9
RGBrgb(81, 89, 233)
HSLhsl(237, 78%, 62%)
HSVhsv(237, 65%, 91%)
CMYKcmyk(65.2%, 61.8%, 0%, 8.6%)
CIE-LABlab(45.33, 41.11, -73.82)
CIE-LCHlch(45.33, 84.50, 299.12°)
OKLaboklab(54.53% 0.0163 -0.2128)
OKLCHoklch(54.53% 0.213 274.4)
XYZxyz(21.6688, 14.7754, 78.7850)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159E9 #E9E151
analogous
#51A5E9 #5159E9 #9551E9
triadic
#5159E9 #E95159 #59E951
tetradic
#5159E9 #E951A5 #E9E151 #51E995
square
#5159E9 #E951A5 #E9E151 #51E995
split-complementary
#5159E9 #E99551 #A5E951
monochromatic
#161DAA #1C27E0 #5159E9 #878DF0 #BEC1F7

Accessibility & contrast

On white

5.31
#5159E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5159E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159E9
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159E9#FFFFFF#000000##FFFFFF
##5159E91.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EE
Deuteranopia (green-blind)
#0065E6
Tritanopia (blue-blind)
#007D99
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5159e9;
/* rgb */ color: rgb(81, 89, 233);
/* oklch */ color: oklch(54.5% 0.213 274.4);
Tailwind
colors: {
  custom: {
    50: '#9388f1',
    500: '#5159e9',
    950: '#000000',
  },
}
SCSS
$custom: #5159e9;
$custom-light: #9388f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5159e9",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 233
  },
  "hsl": {
    "h": 236.842,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.54528,
    "c": 0.21346,
    "h": 274.4
  },
  "luminance": 0.14777
}

Semantic roles & 50–950 ramp

primary
#5159E9
secondary
#E7E4AF
accent
#CF0CDA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5159E9

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

Preview Lab → · Contrast checker → · Palette generator →

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