#5146BF#5146BF

#5146BF is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.9% C 0.182 H 281.1°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#5146BF
RGBrgb(81, 70, 191)
HSLhsl(245, 49%, 51%)
HSVhsv(245, 63%, 75%)
CMYKcmyk(57.6%, 63.4%, 0%, 25.1%)
CIE-LABlab(37.64, 38.88, -62.22)
CIE-LCHlch(37.64, 73.37, 302.00°)
OKLaboklab(47.87% 0.0351 -0.1789)
OKLCHoklch(47.87% 0.182 281.1)
XYZxyz(14.9845, 9.8902, 50.3995)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146BF #B4BF46
analogous
#4677BF #5146BF #8D46BF
triadic
#5146BF #BF5146 #46BF51
tetradic
#5146BF #BF4677 #B4BF46 #46BF8D
square
#5146BF #BF4677 #B4BF46 #46BF8D
split-complementary
#5146BF #BF8D46 #77BF46
monochromatic
#2A2467 #3C3394 #5146BF #7C73CF #A7A1DE

Accessibility & contrast

On white

7.05
#5146BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5146BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5146BF
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146BF#FFFFFF#000000##FFFFFF
##5146BF1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#11647C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5146bf;
/* rgb */ color: rgb(81, 70, 191);
/* oklch */ color: oklch(47.9% 0.182 281.1);
Tailwind
colors: {
  custom: {
    50: '#8c7ad3',
    500: '#5146bf',
    950: '#000000',
  },
}
SCSS
$custom: #5146bf;
$custom-light: #8c7ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#5146bf",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 191
  },
  "hsl": {
    "h": 245.455,
    "s": 48.594,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47869,
    "c": 0.18228,
    "h": 281.1
  },
  "luminance": 0.09891
}

Semantic roles & 50–950 ramp

primary
#5146BF
secondary
#C6CB96
accent
#D850CC
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5146BF

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

Preview Lab → · Contrast checker → · Palette generator →

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