#5146CB#5146CB

#5146CB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.9% C 0.198 H 279.9°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#5146CB
RGBrgb(81, 70, 203)
HSLhsl(245, 56%, 54%)
HSVhsv(245, 66%, 80%)
CMYKcmyk(60.1%, 65.5%, 0%, 20.4%)
CIE-LABlab(38.62, 42.69, -67.62)
CIE-LCHlch(38.62, 79.97, 302.27°)
OKLaboklab(48.88% 0.0339 -0.1947)
OKLCHoklch(48.88% 0.198 279.9)
XYZxyz(16.3596, 10.4403, 57.6414)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146CB #C0CB46
analogous
#467DCB #5146CB #9346CB
triadic
#5146CB #CB5146 #46CB51
tetradic
#5146CB #CB467D #C0CB46 #46CB93
square
#5146CB #CB467D #C0CB46 #46CB93
split-complementary
#5146CB #CB9346 #7DCB46
monochromatic
#282176 #382EA5 #5146CB #7E76D8 #ABA6E6

Accessibility & contrast

On white

6.80
#5146CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5146CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146CB
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146CB#FFFFFF#000000##FFFFFF
##5146CB1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0056C8
Tritanopia (blue-blind)
#006882
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5146cb;
/* rgb */ color: rgb(81, 70, 203);
/* oklch */ color: oklch(48.9% 0.198 279.9);
Tailwind
colors: {
  custom: {
    50: '#8e7adc',
    500: '#5146cb',
    950: '#000000',
  },
}
SCSS
$custom: #5146cb;
$custom-light: #8e7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5146cb",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 203
  },
  "hsl": {
    "h": 244.962,
    "s": 56.118,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48882,
    "c": 0.19765,
    "h": 279.9
  },
  "luminance": 0.10441
}

Semantic roles & 50–950 ramp

primary
#5146CB
secondary
#CED39A
accent
#DF48D3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5146CB

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

Preview Lab → · Contrast checker → · Palette generator →

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