#5159BA#5159BA

#5159BA is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.9% C 0.151 H 276.1°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5159BA
RGBrgb(81, 89, 186)
HSLhsl(235, 43%, 52%)
HSVhsv(235, 56%, 73%)
CMYKcmyk(56.5%, 52.2%, 0%, 27.1%)
CIE-LABlab(41.90, 25.48, -52.39)
CIE-LCHlch(41.90, 58.26, 295.94°)
OKLaboklab(50.91% 0.016 -0.1498)
OKLCHoklch(50.91% 0.151 276.1)
XYZxyz(15.8258, 12.4382, 48.0117)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159BA #BAB251
analogous
#518DBA #5159BA #7E51BA
triadic
#5159BA #BA5159 #59BA51
tetradic
#5159BA #BA518D #BAB251 #51BA7E
square
#5159BA #BA518D #BAB251 #51BA7E
split-complementary
#5159BA #BA7E51 #8DBA51
monochromatic
#292E68 #3A4193 #5159BA #7D83CB #A9ADDD

Accessibility & contrast

On white

6.02
#5159BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5159BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159BA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159BA#FFFFFF#000000##FFFFFF
##5159BA1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2367BD
Deuteranopia (green-blind)
#0E5FB8
Tritanopia (blue-blind)
#166F81
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5159ba;
/* rgb */ color: rgb(81, 89, 186);
/* oklch */ color: oklch(50.9% 0.151 276.1);
Tailwind
colors: {
  custom: {
    50: '#8a87cf',
    500: '#5159ba',
    950: '#000000',
  },
}
SCSS
$custom: #5159ba;
$custom-light: #8a87cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5159ba",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 186
  },
  "hsl": {
    "h": 235.429,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.5091,
    "c": 0.15069,
    "h": 276.1
  },
  "luminance": 0.12439
}

Semantic roles & 50–950 ramp

primary
#5159BA
secondary
#CAC79D
accent
#C955D3
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0D0B14
muted
#7D7C82

Preview Lab

Preview with #5159BA

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

Preview Lab → · Contrast checker → · Palette generator →

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