#5159E3#5159E3

#5159E3 is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.0% C 0.206 H 274.6°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5159E3
RGBrgb(81, 89, 227)
HSLhsl(237, 72%, 60%)
HSVhsv(237, 64%, 89%)
CMYKcmyk(64.3%, 60.8%, 0%, 11%)
CIE-LABlab(44.86, 39.13, -71.19)
CIE-LCHlch(44.86, 81.24, 298.79°)
OKLaboklab(54.04% 0.0166 -0.2051)
OKLCHoklch(54.04% 0.206 274.6)
XYZxyz(20.8263, 14.4383, 74.3475)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159E3 #E3DB51
analogous
#51A2E3 #5159E3 #9251E3
triadic
#5159E3 #E35159 #59E351
tetradic
#5159E3 #E351A2 #E3DB51 #51E392
square
#5159E3 #E351A2 #E3DB51 #51E392
split-complementary
#5159E3 #E39251 #A2E351
monochromatic
#1A21A0 #222CD5 #5159E3 #868BEB #BABEF4

Accessibility & contrast

On white

5.40
#5159E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#5159E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159E3
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159E3#FFFFFF#000000##FFFFFF
##5159E31.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#0064E0
Tritanopia (blue-blind)
#007C96
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5159e3;
/* rgb */ color: rgb(81, 89, 227);
/* oklch */ color: oklch(54.0% 0.206 274.6);
Tailwind
colors: {
  custom: {
    50: '#9188ed',
    500: '#5159e3',
    950: '#000000',
  },
}
SCSS
$custom: #5159e3;
$custom-light: #9188ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5159e3",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 227
  },
  "hsl": {
    "h": 236.712,
    "s": 72.277,
    "l": 60.392
  },
  "oklch": {
    "l": 0.54037,
    "c": 0.2058,
    "h": 274.6
  },
  "luminance": 0.1444
}

Semantic roles & 50–950 ramp

primary
#5159E3
secondary
#E4E1AC
accent
#CA11D4
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5159E3

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

Preview Lab → · Contrast checker → · Palette generator →

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