#5147AE#5147AE

#5147AE is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.7% C 0.158 H 282.8°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5147AE
RGBrgb(81, 71, 174)
HSLhsl(246, 42%, 48%)
HSVhsv(246, 59%, 68%)
CMYKcmyk(53.4%, 59.2%, 0%, 31.8%)
CIE-LABlab(36.58, 32.86, -53.93)
CIE-LCHlch(36.58, 63.15, 301.35°)
OKLaboklab(46.68% 0.035 -0.1545)
OKLCHoklch(46.68% 0.158 282.8)
XYZxyz(13.2842, 9.3110, 41.1334)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147AE #A4AE47
analogous
#4770AE #5147AE #8447AE
triadic
#5147AE #AE5147 #47AE51
tetradic
#5147AE #AE4770 #A4AE47 #47AE84
square
#5147AE #AE4770 #A4AE47 #47AE84
split-complementary
#5147AE #AE8447 #70AE47
monochromatic
#292457 #3D3583 #5147AE #776EC4 #A09AD6

Accessibility & contrast

On white

7.34
#5147AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5147AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5147AE
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147AE#FFFFFF#000000##FFFFFF
##5147AE1.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#0053AC
Tritanopia (blue-blind)
#2A5F73
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5147ae;
/* rgb */ color: rgb(81, 71, 174);
/* oklch */ color: oklch(46.7% 0.158 282.8);
Tailwind
colors: {
  custom: {
    50: '#8a7ac7',
    500: '#5147ae',
    950: '#000000',
  },
}
SCSS
$custom: #5147ae;
$custom-light: #8a7ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#5147ae",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 174
  },
  "hsl": {
    "h": 245.825,
    "s": 42.041,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46677,
    "c": 0.15841,
    "h": 282.8
  },
  "luminance": 0.09312
}

Semantic roles & 50–950 ramp

primary
#5147AE
secondary
#BDC28F
accent
#D256C6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5147AE

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

Preview Lab → · Contrast checker → · Palette generator →

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