#5159D6#5159D6

#5159D6 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 53.0% C 0.189 H 275.1°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5159D6
RGBrgb(81, 89, 214)
HSLhsl(236, 62%, 58%)
HSVhsv(236, 62%, 84%)
CMYKcmyk(62.1%, 58.4%, 0%, 16.1%)
CIE-LABlab(43.87, 34.81, -65.40)
CIE-LCHlch(43.87, 74.08, 298.02°)
OKLaboklab(53% 0.0169 -0.1881)
OKLCHoklch(53% 0.189 275.1)
XYZxyz(19.0993, 13.7476, 65.2523)
Luminance0.1375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159D6 #D6CE51
analogous
#519BD6 #5159D6 #8B51D6
triadic
#5159D6 #D65159 #59D651
tetradic
#5159D6 #D6519B #D6CE51 #51D68B
square
#5159D6 #D6519B #D6CE51 #51D68B
split-complementary
#5159D6 #D68B51 #9BD651
monochromatic
#21278C #2D35BD #5159D6 #8388E2 #B4B8ED

Accessibility & contrast

On white

5.60
#5159D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5159D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159D6
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159D6#FFFFFF#000000##FFFFFF
##5159D61.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDA
Deuteranopia (green-blind)
#0062D3
Tritanopia (blue-blind)
#00778F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5159d6;
/* rgb */ color: rgb(81, 89, 214);
/* oklch */ color: oklch(53.0% 0.189 275.1);
Tailwind
colors: {
  custom: {
    50: '#8f88e3',
    500: '#5159d6',
    950: '#000000',
  },
}
SCSS
$custom: #5159d6;
$custom-light: #8f88e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5159d6",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 214
  },
  "hsl": {
    "h": 236.391,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.52999,
    "c": 0.18886,
    "h": 275.1
  },
  "luminance": 0.13749
}

Semantic roles & 50–950 ramp

primary
#5159D6
secondary
#DCD9A7
accent
#DB43E5
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5159D6

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

Preview Lab → · Contrast checker → · Palette generator →

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