#5159A3#5159A3

#5159A3 is a mid, moderate blue. Relative luminance 0.115; OKLCH L 49.4% C 0.118 H 276.5°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5159A3
RGBrgb(81, 89, 163)
HSLhsl(234, 34%, 48%)
HSVhsv(234, 50%, 64%)
CMYKcmyk(50.3%, 45.4%, 0%, 36.1%)
CIE-LABlab(40.47, 17.94, -41.13)
CIE-LCHlch(40.47, 44.87, 293.57°)
OKLaboklab(49.36% 0.0134 -0.1167)
OKLCHoklch(49.36% 0.118 276.5)
XYZxyz(13.5745, 11.5376, 36.1549)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5159A3 #A39B51
analogous
#5182A3 #5159A3 #7251A3
triadic
#5159A3 #A35159 #59A351
tetradic
#5159A3 #A35182 #A39B51 #51A372
square
#5159A3 #A35182 #A39B51 #51A372
split-complementary
#5159A3 #A37251 #82A351
monochromatic
#282C51 #3D437A #5159A3 #767DBB #9FA4CF

Accessibility & contrast

On white

6.35
#5159A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5159A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5159A3
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5159A3#FFFFFF#000000##FFFFFF
##5159A31.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A63A6
Deuteranopia (green-blind)
#335CA1
Tritanopia (blue-blind)
#316976
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5159a3;
/* rgb */ color: rgb(81, 89, 163);
/* oklch */ color: oklch(49.4% 0.118 276.5);
Tailwind
colors: {
  custom: {
    50: '#8787bf',
    500: '#5159a3',
    950: '#000000',
  },
}
SCSS
$custom: #5159a3;
$custom-light: #8787bf;
$custom-dark: #000000;
JSON
{
  "hex": "#5159a3",
  "rgb": {
    "r": 81,
    "g": 89,
    "b": 163
  },
  "hsl": {
    "h": 234.146,
    "s": 33.607,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49365,
    "c": 0.11752,
    "h": 276.5
  },
  "luminance": 0.11538
}

Semantic roles & 50–950 ramp

primary
#5159A3
secondary
#BCB893
accent
#BF5ECA
background
#F8F8FB
surface
#F0EFF7
border
#CBCAD0
text
#0C0B12
muted
#7D7C81

Preview Lab

Preview with #5159A3

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

Preview Lab → · Contrast checker → · Palette generator →

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