#5159AE#5159AE

#5159AE is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.1% C 0.134 H 276.4°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#5159AE
RGBrgb(81, 89, 174)
HSLhsl(235, 36%, 50%)
HSVhsv(235, 53%, 68%)
CMYKcmyk(53.4%, 48.9%, 0%, 31.8%)
CIE-LABlab(41.14, 21.53, -46.58)
CIE-LCHlch(41.14, 51.32, 294.80°)
OKLaboklab(50.08% 0.0149 -0.1328)
OKLCHoklch(50.08% 0.134 276.4)
XYZxyz(14.6033, 11.9491, 41.5731)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159AE #AEA651
analogous
#5187AE #5159AE #7851AE
triadic
#5159AE #AE5159 #59AE51
tetradic
#5159AE #AE5187 #AEA651 #51AE78
square
#5159AE #AE5187 #AEA651 #51AE78
split-complementary
#5159AE #AE7851 #87AE51
monochromatic
#2A2E5A #3E4484 #5159AE #7B81C1 #A5A9D5

Accessibility & contrast

On white

6.19
#5159AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5159AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159AE
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159AE#FFFFFF#000000##FFFFFF
##5159AE1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3165B1
Deuteranopia (green-blind)
#265DAC
Tritanopia (blue-blind)
#276C7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5159ae;
/* rgb */ color: rgb(81, 89, 174);
/* oklch */ color: oklch(50.1% 0.134 276.4);
Tailwind
colors: {
  custom: {
    50: '#8987c7',
    500: '#5159ae',
    950: '#000000',
  },
}
SCSS
$custom: #5159ae;
$custom-light: #8987c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5159ae",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 174
  },
  "hsl": {
    "h": 234.839,
    "s": 36.471,
    "l": 50
  },
  "oklch": {
    "l": 0.50083,
    "c": 0.13359,
    "h": 276.4
  },
  "luminance": 0.1195
}

Semantic roles & 50–950 ramp

primary
#5159AE
secondary
#C2BF99
accent
#C35BCC
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #5159AE

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

Preview Lab → · Contrast checker → · Palette generator →

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