#5146CD#5146CD

#5146CD is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.1% C 0.200 H 279.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5146CD
RGBrgb(81, 70, 205)
HSLhsl(245, 57%, 54%)
HSVhsv(245, 66%, 80%)
CMYKcmyk(60.5%, 65.9%, 0%, 19.6%)
CIE-LABlab(38.79, 43.33, -68.50)
CIE-LCHlch(38.79, 81.05, 302.31°)
OKLaboklab(49.06% 0.0337 -0.1973)
OKLCHoklch(49.06% 0.2 279.7)
XYZxyz(16.5994, 10.5362, 58.9047)
Luminance0.1054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146CD #C2CD46
analogous
#467FCD #5146CD #9546CD
triadic
#5146CD #CD5146 #46CD51
tetradic
#5146CD #CD467F #C2CD46 #46CD95
square
#5146CD #CD467F #C2CD46 #46CD95
split-complementary
#5146CD #CD9546 #7FCD46
monochromatic
#282078 #372DA8 #5146CD #7E76DA #ACA6E7

Accessibility & contrast

On white

6.76
#5146CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5146CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146CD
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146CD#FFFFFF#000000##FFFFFF
##5146CD1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0056CA
Tritanopia (blue-blind)
#006983
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5146cd;
/* rgb */ color: rgb(81, 70, 205);
/* oklch */ color: oklch(49.1% 0.200 279.7);
Tailwind
colors: {
  custom: {
    50: '#8f7add',
    500: '#5146cd',
    950: '#000000',
  },
}
SCSS
$custom: #5146cd;
$custom-light: #8f7add;
$custom-dark: #000000;
JSON
{
  "hex": "#5146cd",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 205
  },
  "hsl": {
    "h": 244.889,
    "s": 57.447,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49055,
    "c": 0.20018,
    "h": 279.7
  },
  "luminance": 0.10537
}

Semantic roles & 50–950 ramp

primary
#5146CD
secondary
#D0D49B
accent
#E147D4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5146CD

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

Preview Lab → · Contrast checker → · Palette generator →

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