#5149AB#5149AB

#5149AB is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.8% C 0.152 H 282.5°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5149AB
RGBrgb(81, 73, 171)
HSLhsl(245, 40%, 48%)
HSVhsv(245, 57%, 67%)
CMYKcmyk(52.6%, 57.3%, 0%, 32.9%)
CIE-LABlab(36.84, 30.66, -51.71)
CIE-LCHlch(36.84, 60.12, 300.66°)
OKLaboklab(46.81% 0.0328 -0.148)
OKLCHoklch(46.81% 0.152 282.5)
XYZxyz(13.1243, 9.4540, 39.6534)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149AB #A3AB49
analogous
#4972AB #5149AB #8249AB
triadic
#5149AB #AB5149 #49AB51
tetradic
#5149AB #AB4972 #A3AB49 #49AB82
square
#5149AB #AB4972 #A3AB49 #49AB82
split-complementary
#5149AB #AB8249 #72AB49
monochromatic
#282455 #3D3780 #5149AB #766FC2 #9F9AD4

Accessibility & contrast

On white

7.26
#5149AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5149AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5149AB
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149AB#FFFFFF#000000##FFFFFF
##5149AB1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAE
Deuteranopia (green-blind)
#0053A9
Tritanopia (blue-blind)
#2C5F73
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5149ab;
/* rgb */ color: rgb(81, 73, 171);
/* oklch */ color: oklch(46.8% 0.152 282.5);
Tailwind
colors: {
  custom: {
    50: '#897cc5',
    500: '#5149ab',
    950: '#000000',
  },
}
SCSS
$custom: #5149ab;
$custom-light: #897cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5149ab",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 171
  },
  "hsl": {
    "h": 244.898,
    "s": 40.164,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46806,
    "c": 0.15157,
    "h": 282.5
  },
  "luminance": 0.09455
}

Semantic roles & 50–950 ramp

primary
#5149AB
secondary
#BCC08F
accent
#D058C6
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5149AB

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

Preview Lab → · Contrast checker → · Palette generator →

#5149AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva