#5159C6#5159C6

#5159C6 is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.8% C 0.167 H 275.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5159C6
RGBrgb(81, 89, 198)
HSLhsl(236, 51%, 55%)
HSVhsv(236, 59%, 78%)
CMYKcmyk(59.1%, 55.1%, 0%, 22.4%)
CIE-LABlab(42.72, 29.47, -58.06)
CIE-LCHlch(42.72, 65.11, 296.92°)
OKLaboklab(51.78% 0.0167 -0.1665)
OKLCHoklch(51.78% 0.167 275.7)
XYZxyz(17.1555, 12.9700, 55.0146)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159C6 #C6BE51
analogous
#5194C6 #5159C6 #8351C6
triadic
#5159C6 #C65159 #59C651
tetradic
#5159C6 #C65194 #C6BE51 #51C683
square
#5159C6 #C65194 #C6BE51 #51C683
split-complementary
#5159C6 #C68351 #94C651
monochromatic
#272C76 #363DA4 #5159C6 #7F85D5 #ADB1E4

Accessibility & contrast

On white

5.84
#5159C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5159C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159C6
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159C6#FFFFFF#000000##FFFFFF
##5159C61.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076ACA
Deuteranopia (green-blind)
#0060C4
Tritanopia (blue-blind)
#007387
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5159c6;
/* rgb */ color: rgb(81, 89, 198);
/* oklch */ color: oklch(51.8% 0.167 275.7);
Tailwind
colors: {
  custom: {
    50: '#8c87d8',
    500: '#5159c6',
    950: '#000000',
  },
}
SCSS
$custom: #5159c6;
$custom-light: #8c87d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5159c6",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 198
  },
  "hsl": {
    "h": 235.897,
    "s": 50.649,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51779,
    "c": 0.16734,
    "h": 275.7
  },
  "luminance": 0.12971
}

Semantic roles & 50–950 ramp

primary
#5159C6
secondary
#D2CFA1
accent
#D14EDA
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5159C6

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

Preview Lab → · Contrast checker → · Palette generator →

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