#5146D9#5146D9

#5146D9 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.1% C 0.215 H 278.6°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5146D9
RGBrgb(81, 70, 217)
HSLhsl(244, 66%, 56%)
HSVhsv(244, 68%, 85%)
CMYKcmyk(62.7%, 67.7%, 0%, 14.9%)
CIE-LABlab(39.81, 47.11, -73.74)
CIE-LCHlch(39.81, 87.51, 302.58°)
OKLaboklab(50.11% 0.0322 -0.2127)
OKLCHoklch(50.11% 0.215 278.6)
XYZxyz(18.1039, 11.1380, 66.8280)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146D9 #CED946
analogous
#4685D9 #5146D9 #9B46D9
triadic
#5146D9 #D95146 #46D951
tetradic
#5146D9 #D94685 #CED946 #46D99B
square
#5146D9 #D94685 #CED946 #46D99B
split-complementary
#5146D9 #D99B46 #85D946
monochromatic
#241C89 #3226BB #5146D9 #8179E3 #B1ACEE

Accessibility & contrast

On white

6.51
#5146D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5146D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146D9
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146D9#FFFFFF#000000##FFFFFF
##5146D91.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DD
Deuteranopia (green-blind)
#0058D6
Tritanopia (blue-blind)
#006D8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5146d9;
/* rgb */ color: rgb(81, 70, 217);
/* oklch */ color: oklch(50.1% 0.215 278.6);
Tailwind
colors: {
  custom: {
    50: '#917be6',
    500: '#5146d9',
    950: '#000000',
  },
}
SCSS
$custom: #5146d9;
$custom-light: #917be6;
$custom-dark: #000000;
JSON
{
  "hex": "#5146d9",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 217
  },
  "hsl": {
    "h": 244.49,
    "s": 65.919,
    "l": 56.275
  },
  "oklch": {
    "l": 0.50109,
    "c": 0.21508,
    "h": 278.6
  },
  "luminance": 0.11139
}

Semantic roles & 50–950 ramp

primary
#5146D9
secondary
#D7DC9F
accent
#E93FDC
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5146D9

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

Preview Lab → · Contrast checker → · Palette generator →

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