#5159D2#5159D2

#5159D2 is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.7% C 0.184 H 275.3°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#5159D2
RGBrgb(81, 89, 210)
HSLhsl(236, 59%, 57%)
HSVhsv(236, 61%, 82%)
CMYKcmyk(61.4%, 57.6%, 0%, 17.6%)
CIE-LABlab(43.57, 33.47, -63.58)
CIE-LCHlch(43.57, 71.86, 297.76°)
OKLaboklab(52.69% 0.0169 -0.1828)
OKLCHoklch(52.69% 0.184 275.3)
XYZxyz(18.5948, 13.5457, 62.5950)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159D2 #D2CA51
analogous
#519AD2 #5159D2 #8A51D2
triadic
#5159D2 #D25159 #59D251
tetradic
#5159D2 #D2519A #D2CA51 #51D28A
square
#5159D2 #D2519A #D2CA51 #51D28A
split-complementary
#5159D2 #D28A51 #9AD251
monochromatic
#232986 #2F38B7 #5159D2 #8287DF #B2B6EB

Accessibility & contrast

On white

5.66
#5159D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5159D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159D2
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159D2#FFFFFF#000000##FFFFFF
##5159D21.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#0061D0
Tritanopia (blue-blind)
#00768D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5159d2;
/* rgb */ color: rgb(81, 89, 210);
/* oklch */ color: oklch(52.7% 0.184 275.3);
Tailwind
colors: {
  custom: {
    50: '#8e88e1',
    500: '#5159d2',
    950: '#000000',
  },
}
SCSS
$custom: #5159d2;
$custom-light: #8e88e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5159d2",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 210
  },
  "hsl": {
    "h": 236.279,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52688,
    "c": 0.18355,
    "h": 275.3
  },
  "luminance": 0.13547
}

Semantic roles & 50–950 ramp

primary
#5159D2
secondary
#DAD6A5
accent
#D846E2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5159D2

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

Preview Lab → · Contrast checker → · Palette generator →

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