#5159DC#5159DC

#5159DC is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.5% C 0.197 H 274.9°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#5159DC
RGBrgb(81, 89, 220)
HSLhsl(237, 67%, 59%)
HSVhsv(237, 63%, 86%)
CMYKcmyk(63.2%, 59.5%, 0%, 13.7%)
CIE-LABlab(44.32, 36.80, -68.09)
CIE-LCHlch(44.32, 77.40, 298.39°)
OKLaboklab(53.47% 0.0168 -0.196)
OKLCHoklch(53.47% 0.197 274.9)
XYZxyz(19.8797, 14.0597, 69.3624)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159DC #DCD451
analogous
#519FDC #5159DC #8F51DC
triadic
#5159DC #DC5159 #59DC51
tetradic
#5159DC #DC519F #DCD451 #51DC8F
square
#5159DC #DC519F #DCD451 #51DC8F
split-complementary
#5159DC #DC8F51 #9FDC51
monochromatic
#1E2595 #2831C8 #5159DC #848AE6 #B7BAF0

Accessibility & contrast

On white

5.51
#5159DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5159DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159DC
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159DC#FFFFFF#000000##FFFFFF
##5159DC1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#0063D9
Tritanopia (blue-blind)
#007992
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5159dc;
/* rgb */ color: rgb(81, 89, 220);
/* oklch */ color: oklch(53.5% 0.197 274.9);
Tailwind
colors: {
  custom: {
    50: '#9088e8',
    500: '#5159dc',
    950: '#000000',
  },
}
SCSS
$custom: #5159dc;
$custom-light: #9088e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5159dc",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 220
  },
  "hsl": {
    "h": 236.547,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.53473,
    "c": 0.19673,
    "h": 274.9
  },
  "luminance": 0.14061
}

Semantic roles & 50–950 ramp

primary
#5159DC
secondary
#E0DDA9
accent
#E03EE9
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B16
muted
#7E7C84

Preview Lab

Preview with #5159DC

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

Preview Lab → · Contrast checker → · Palette generator →

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