#5159D8#5159D8

#5159D8 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 53.2% C 0.191 H 275.1°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5159D8
RGBrgb(81, 89, 216)
HSLhsl(236, 63%, 58%)
HSVhsv(236, 63%, 85%)
CMYKcmyk(62.5%, 58.8%, 0%, 15.3%)
CIE-LABlab(44.02, 35.47, -66.30)
CIE-LCHlch(44.02, 75.19, 298.15°)
OKLaboklab(53.16% 0.0169 -0.1907)
OKLCHoklch(53.16% 0.191 275.1)
XYZxyz(19.3563, 13.8504, 66.6058)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159D8 #D8D051
analogous
#519DD8 #5159D8 #8C51D8
triadic
#5159D8 #D85159 #59D851
tetradic
#5159D8 #D8519D #D8D051 #51D88C
square
#5159D8 #D8519D #D8D051 #51D88C
split-complementary
#5159D8 #D88C51 #9DD851
monochromatic
#20278F #2B34C1 #5159D8 #8389E3 #B5B8EE

Accessibility & contrast

On white

5.57
#5159D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5159D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159D8
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159D8#FFFFFF#000000##FFFFFF
##5159D81.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#0062D5
Tritanopia (blue-blind)
#007890
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5159d8;
/* rgb */ color: rgb(81, 89, 216);
/* oklch */ color: oklch(53.2% 0.191 275.1);
Tailwind
colors: {
  custom: {
    50: '#8f88e5',
    500: '#5159d8',
    950: '#000000',
  },
}
SCSS
$custom: #5159d8;
$custom-light: #8f88e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5159d8",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 216
  },
  "hsl": {
    "h": 236.444,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.53156,
    "c": 0.19149,
    "h": 275.1
  },
  "luminance": 0.13852
}

Semantic roles & 50–950 ramp

primary
#5159D8
secondary
#DDDAA8
accent
#DD41E6
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5159D8

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

Preview Lab → · Contrast checker → · Palette generator →

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