#5159D9#5159D9

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

Color values

HEX#5159D9
RGBrgb(81, 89, 217)
HSLhsl(236, 64%, 58%)
HSVhsv(236, 63%, 85%)
CMYKcmyk(62.7%, 59%, 0%, 14.9%)
CIE-LABlab(44.09, 35.81, -66.75)
CIE-LCHlch(44.09, 75.75, 298.21°)
OKLaboklab(53.24% 0.0169 -0.1921)
OKLCHoklch(53.24% 0.193 275)
XYZxyz(19.4860, 13.9022, 67.2887)
Luminance0.1390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159D9 #D9D151
analogous
#519DD9 #5159D9 #8D51D9
triadic
#5159D9 #D95159 #59D951
tetradic
#5159D9 #D9519D #D9D151 #51D98D
square
#5159D9 #D9519D #D9D151 #51D98D
split-complementary
#5159D9 #D98D51 #9DD951
monochromatic
#1F2690 #2A33C2 #5159D9 #8389E4 #B5B9EF

Accessibility & contrast

On white

5.55
#5159D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5159D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159D9
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159D9#FFFFFF#000000##FFFFFF
##5159D91.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5159d9;
/* rgb */ color: rgb(81, 89, 217);
/* oklch */ color: oklch(53.2% 0.193 275.0);
Tailwind
colors: {
  custom: {
    50: '#9088e6',
    500: '#5159d9',
    950: '#000000',
  },
}
SCSS
$custom: #5159d9;
$custom-light: #9088e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5159d9",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 217
  },
  "hsl": {
    "h": 236.471,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.53235,
    "c": 0.19281,
    "h": 275
  },
  "luminance": 0.13904
}

Semantic roles & 50–950 ramp

primary
#5159D9
secondary
#DEDBA8
accent
#DD41E7
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5159D9

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

Preview Lab → · Contrast checker → · Palette generator →

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