#5146BA#5146BA

#5146BA is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.5% C 0.176 H 281.6°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5146BA
RGBrgb(81, 70, 186)
HSLhsl(246, 46%, 50%)
HSVhsv(246, 62%, 73%)
CMYKcmyk(56.5%, 62.4%, 0%, 27.1%)
CIE-LABlab(37.25, 37.29, -59.93)
CIE-LCHlch(37.25, 70.58, 301.89°)
OKLaboklab(47.46% 0.0355 -0.1721)
OKLCHoklch(47.46% 0.176 281.6)
XYZxyz(14.4437, 9.6739, 47.5510)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146BA #AFBA46
analogous
#4675BA #5146BA #8B46BA
triadic
#5146BA #BA5146 #46BA51
tetradic
#5146BA #BA4675 #AFBA46 #46BA8B
square
#5146BA #BA4675 #AFBA46 #46BA8B
split-complementary
#5146BA #BA8B46 #75BA46
monochromatic
#2A2461 #3D358E #5146BA #7B73CB #A59FDB

Accessibility & contrast

On white

7.16
#5146BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5146BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5146BA
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146BA#FFFFFF#000000##FFFFFF
##5146BA1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#1B6279
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5146ba;
/* rgb */ color: rgb(81, 70, 186);
/* oklch */ color: oklch(47.5% 0.176 281.6);
Tailwind
colors: {
  custom: {
    50: '#8c7ad0',
    500: '#5146ba',
    950: '#000000',
  },
}
SCSS
$custom: #5146ba;
$custom-light: #8c7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5146ba",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 186
  },
  "hsl": {
    "h": 245.69,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47458,
    "c": 0.17575,
    "h": 281.6
  },
  "luminance": 0.09675
}

Semantic roles & 50–950 ramp

primary
#5146BA
secondary
#C3C894
accent
#D552C9
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5146BA

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

Preview Lab → · Contrast checker → · Palette generator →

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