#5146BD#5146BD

#5146BD is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.7% C 0.180 H 281.3°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5146BD
RGBrgb(81, 70, 189)
HSLhsl(246, 47%, 51%)
HSVhsv(246, 63%, 74%)
CMYKcmyk(57.1%, 63%, 0%, 25.9%)
CIE-LABlab(37.49, 38.24, -61.31)
CIE-LCHlch(37.49, 72.26, 301.96°)
OKLaboklab(47.7% 0.0352 -0.1762)
OKLCHoklch(47.7% 0.18 281.3)
XYZxyz(14.7659, 9.8028, 49.2483)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146BD #B2BD46
analogous
#4676BD #5146BD #8C46BD
triadic
#5146BD #BD5146 #46BD51
tetradic
#5146BD #BD4676 #B2BD46 #46BD8C
square
#5146BD #BD4676 #B2BD46 #46BD8C
split-complementary
#5146BD #BD8C46 #76BD46
monochromatic
#2A2465 #3D3492 #5146BD #7B73CD #A6A0DD

Accessibility & contrast

On white

7.09
#5146BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5146BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5146BD
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146BD#FFFFFF#000000##FFFFFF
##5146BD1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#0054BB
Tritanopia (blue-blind)
#15637B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5146bd;
/* rgb */ color: rgb(81, 70, 189);
/* oklch */ color: oklch(47.7% 0.180 281.3);
Tailwind
colors: {
  custom: {
    50: '#8c7ad2',
    500: '#5146bd',
    950: '#000000',
  },
}
SCSS
$custom: #5146bd;
$custom-light: #8c7ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#5146bd",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 189
  },
  "hsl": {
    "h": 245.546,
    "s": 47.41,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47704,
    "c": 0.17968,
    "h": 281.3
  },
  "luminance": 0.09804
}

Semantic roles & 50–950 ramp

primary
#5146BD
secondary
#C5CA95
accent
#D751CB
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5146BD

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

Preview Lab → · Contrast checker → · Palette generator →

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