#5149AA#5149AA

#5149AA is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.7% C 0.150 H 282.6°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5149AA
RGBrgb(81, 73, 170)
HSLhsl(245, 40%, 48%)
HSVhsv(245, 57%, 67%)
CMYKcmyk(52.4%, 57.1%, 0%, 33.3%)
CIE-LABlab(36.77, 30.34, -51.23)
CIE-LCHlch(36.77, 59.54, 300.63°)
OKLaboklab(46.73% 0.0328 -0.1466)
OKLCHoklch(46.73% 0.15 282.6)
XYZxyz(13.0294, 9.4160, 39.1533)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149AA #A2AA49
analogous
#4972AA #5149AA #8149AA
triadic
#5149AA #AA5149 #49AA51
tetradic
#5149AA #AA4972 #A2AA49 #49AA81
square
#5149AA #AA4972 #A2AA49 #49AA81
split-complementary
#5149AA #AA8149 #72AA49
monochromatic
#282454 #3D377F #5149AA #766FC1 #9F9AD4

Accessibility & contrast

On white

7.28
#5149AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5149AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5149AA#FFFFFF#000000##FFFFFF
##5149AA1.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#015AAD
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#2D5F72
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5149aa;
/* rgb */ color: rgb(81, 73, 170);
/* oklch */ color: oklch(46.7% 0.150 282.6);
Tailwind
colors: {
  custom: {
    50: '#897cc4',
    500: '#5149aa',
    950: '#000000',
  },
}
SCSS
$custom: #5149aa;
$custom-light: #897cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5149aa",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 170
  },
  "hsl": {
    "h": 244.948,
    "s": 39.918,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46731,
    "c": 0.15019,
    "h": 282.6
  },
  "luminance": 0.09417
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5149AA

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

Preview Lab → · Contrast checker → · Palette generator →

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