#5159EA#5159EA

#5159EA is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.6% C 0.215 H 274.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5159EA
RGBrgb(81, 89, 234)
HSLhsl(237, 78%, 62%)
HSVhsv(237, 65%, 92%)
CMYKcmyk(65.4%, 62%, 0%, 8.2%)
CIE-LABlab(45.40, 41.45, -74.25)
CIE-LCHlch(45.40, 85.04, 299.17°)
OKLaboklab(54.61% 0.0163 -0.2141)
OKLCHoklch(54.61% 0.215 274.3)
XYZxyz(21.8121, 14.8327, 79.5395)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159EA #EAE251
analogous
#51A6EA #5159EA #9651EA
triadic
#5159EA #EA5159 #59EA51
tetradic
#5159EA #EA51A6 #EAE251 #51EA96
square
#5159EA #EA51A6 #EAE251 #51EA96
split-complementary
#5159EA #EA9651 #A6EA51
monochromatic
#151DAC #1B26E2 #5159EA #888DF1 #BEC1F7

Accessibility & contrast

On white

5.29
#5159EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#5159EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159EA
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159EA#FFFFFF#000000##FFFFFF
##5159EA1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EF
Deuteranopia (green-blind)
#0065E7
Tritanopia (blue-blind)
#007E99
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5159ea;
/* rgb */ color: rgb(81, 89, 234);
/* oklch */ color: oklch(54.6% 0.215 274.3);
Tailwind
colors: {
  custom: {
    50: '#9388f2',
    500: '#5159ea',
    950: '#000000',
  },
}
SCSS
$custom: #5159ea;
$custom-light: #9388f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5159ea",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 234
  },
  "hsl": {
    "h": 236.863,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.54611,
    "c": 0.21473,
    "h": 274.3
  },
  "luminance": 0.14835
}

Semantic roles & 50–950 ramp

primary
#5159EA
secondary
#E8E5AF
accent
#D00BDB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5159EA

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

Preview Lab → · Contrast checker → · Palette generator →

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