#5146D8#5146D8

#5146D8 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.0% C 0.214 H 278.7°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#5146D8
RGBrgb(81, 70, 216)
HSLhsl(245, 65%, 56%)
HSVhsv(245, 68%, 85%)
CMYKcmyk(62.5%, 67.6%, 0%, 15.3%)
CIE-LABlab(39.73, 46.80, -73.31)
CIE-LCHlch(39.73, 86.97, 302.55°)
OKLaboklab(50.02% 0.0323 -0.2114)
OKLCHoklch(50.02% 0.214 278.7)
XYZxyz(17.9742, 11.0861, 66.1451)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146D8 #CDD846
analogous
#4684D8 #5146D8 #9A46D8
triadic
#5146D8 #D85146 #46D851
tetradic
#5146D8 #D84684 #CDD846 #46D89A
square
#5146D8 #D84684 #CDD846 #46D89A
split-complementary
#5146D8 #D89A46 #84D846
monochromatic
#251C87 #3227BA #5146D8 #8179E3 #B0ABED

Accessibility & contrast

On white

6.53
#5146D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5146D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146D8
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146D8#FFFFFF#000000##FFFFFF
##5146D81.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DC
Deuteranopia (green-blind)
#0058D5
Tritanopia (blue-blind)
#006D89
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5146d8;
/* rgb */ color: rgb(81, 70, 216);
/* oklch */ color: oklch(50.0% 0.214 278.7);
Tailwind
colors: {
  custom: {
    50: '#917be5',
    500: '#5146d8',
    950: '#000000',
  },
}
SCSS
$custom: #5146d8;
$custom-light: #917be5;
$custom-dark: #000000;
JSON
{
  "hex": "#5146d8",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 216
  },
  "hsl": {
    "h": 244.521,
    "s": 65.179,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5002,
    "c": 0.21385,
    "h": 278.7
  },
  "luminance": 0.11088
}

Semantic roles & 50–950 ramp

primary
#5146D8
secondary
#D7DB9F
accent
#E840DB
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5146D8

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

Preview Lab → · Contrast checker → · Palette generator →

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