#5159BE#5159BE

#5159BE is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.2% C 0.156 H 276.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#5159BE
RGBrgb(81, 89, 190)
HSLhsl(236, 46%, 53%)
HSVhsv(236, 57%, 75%)
CMYKcmyk(57.4%, 53.2%, 0%, 25.5%)
CIE-LABlab(42.17, 26.81, -54.30)
CIE-LCHlch(42.17, 60.56, 296.28°)
OKLaboklab(51.2% 0.0163 -0.1554)
OKLCHoklch(51.2% 0.156 276)
XYZxyz(16.2570, 12.6106, 50.2826)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159BE #BEB651
analogous
#5190BE #5159BE #7F51BE
triadic
#5159BE #BE5159 #59BE51
tetradic
#5159BE #BE5190 #BEB651 #51BE7F
square
#5159BE #BE5190 #BEB651 #51BE7F
split-complementary
#5159BE #BE7F51 #90BE51
monochromatic
#282D6C #394099 #5159BE #7E84CF #AAAEDF

Accessibility & contrast

On white

5.96
#5159BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#5159BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159BE
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159BE#FFFFFF#000000##FFFFFF
##5159BE1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D68C2
Deuteranopia (green-blind)
#005FBC
Tritanopia (blue-blind)
#0C7083
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5159be;
/* rgb */ color: rgb(81, 89, 190);
/* oklch */ color: oklch(51.2% 0.156 276.0);
Tailwind
colors: {
  custom: {
    50: '#8b87d2',
    500: '#5159be',
    950: '#000000',
  },
}
SCSS
$custom: #5159be;
$custom-light: #8b87d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5159be",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 190
  },
  "hsl": {
    "h": 235.596,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.51195,
    "c": 0.15629,
    "h": 276
  },
  "luminance": 0.12612
}

Semantic roles & 50–950 ramp

primary
#5159BE
secondary
#CDC99E
accent
#CC53D5
background
#F9F8FD
surface
#F1EFFA
border
#CBCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5159BE

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

Preview Lab → · Contrast checker → · Palette generator →

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