#5146AE#5146AE

#5146AE is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.5% C 0.160 H 283.0°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5146AE
RGBrgb(81, 70, 174)
HSLhsl(246, 43%, 48%)
HSVhsv(246, 60%, 68%)
CMYKcmyk(53.4%, 59.8%, 0%, 31.8%)
CIE-LABlab(36.34, 33.47, -54.32)
CIE-LCHlch(36.34, 63.80, 301.64°)
OKLaboklab(46.5% 0.036 -0.1556)
OKLCHoklch(46.5% 0.16 283)
XYZxyz(13.2212, 9.1849, 41.1124)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146AE #A3AE46
analogous
#466FAE #5146AE #8546AE
triadic
#5146AE #AE5146 #46AE51
tetradic
#5146AE #AE466F #A3AE46 #46AE85
square
#5146AE #AE466F #A3AE46 #46AE85
split-complementary
#5146AE #AE8546 #6FAE46
monochromatic
#282357 #3D3482 #5146AE #766DC4 #9F99D6

Accessibility & contrast

On white

7.40
#5146AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5146AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5146AE
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146AE#FFFFFF#000000##FFFFFF
##5146AE1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B1
Deuteranopia (green-blind)
#0052AC
Tritanopia (blue-blind)
#2A5E73
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5146ae;
/* rgb */ color: rgb(81, 70, 174);
/* oklch */ color: oklch(46.5% 0.160 283.0);
Tailwind
colors: {
  custom: {
    50: '#8a7ac7',
    500: '#5146ae',
    950: '#000000',
  },
}
SCSS
$custom: #5146ae;
$custom-light: #8a7ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#5146ae",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 174
  },
  "hsl": {
    "h": 246.346,
    "s": 42.623,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46501,
    "c": 0.15976,
    "h": 283
  },
  "luminance": 0.09186
}

Semantic roles & 50–950 ramp

primary
#5146AE
secondary
#BCC28E
accent
#D255C5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5146AE

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

Preview Lab → · Contrast checker → · Palette generator →

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