#5146B2#5146B2

#5146B2 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.8% C 0.165 H 282.6°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5146B2
RGBrgb(81, 70, 178)
HSLhsl(246, 44%, 49%)
HSVhsv(246, 61%, 70%)
CMYKcmyk(54.5%, 60.7%, 0%, 30.2%)
CIE-LABlab(36.64, 34.74, -56.20)
CIE-LCHlch(36.64, 66.08, 301.72°)
OKLaboklab(46.82% 0.0359 -0.1612)
OKLCHoklch(46.82% 0.165 282.6)
XYZxyz(13.6169, 9.3432, 43.1967)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146B2 #A7B246
analogous
#4671B2 #5146B2 #8746B2
triadic
#5146B2 #B25146 #46B251
tetradic
#5146B2 #B24671 #A7B246 #46B287
square
#5146B2 #B24671 #A7B246 #46B287
split-complementary
#5146B2 #B28746 #71B246
monochromatic
#29235A #3D3586 #5146B2 #786FC6 #A19BD8

Accessibility & contrast

On white

7.32
#5146B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5146B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5146B2
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146B2#FFFFFF#000000##FFFFFF
##5146B21.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#266075
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5146b2;
/* rgb */ color: rgb(81, 70, 178);
/* oklch */ color: oklch(46.8% 0.165 282.6);
Tailwind
colors: {
  custom: {
    50: '#8a7aca',
    500: '#5146b2',
    950: '#000000',
  },
}
SCSS
$custom: #5146b2;
$custom-light: #8a7aca;
$custom-dark: #000000;
JSON
{
  "hex": "#5146b2",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 178
  },
  "hsl": {
    "h": 246.111,
    "s": 43.548,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46815,
    "c": 0.16515,
    "h": 282.6
  },
  "luminance": 0.09344
}

Semantic roles & 50–950 ramp

primary
#5146B2
secondary
#BFC490
accent
#D355C6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0D0913
muted
#7D7B82

Preview Lab

Preview with #5146B2

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

Preview Lab → · Contrast checker → · Palette generator →

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