#5146CE#5146CE

#5146CE is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.1% C 0.201 H 279.6°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5146CE
RGBrgb(81, 70, 206)
HSLhsl(245, 58%, 54%)
HSVhsv(245, 66%, 81%)
CMYKcmyk(60.7%, 66%, 0%, 19.2%)
CIE-LABlab(38.87, 43.64, -68.94)
CIE-LCHlch(38.87, 81.60, 302.34°)
OKLaboklab(49.14% 0.0336 -0.1986)
OKLCHoklch(49.14% 0.201 279.6)
XYZxyz(16.7205, 10.5846, 59.5425)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146CE #C3CE46
analogous
#467FCE #5146CE #9546CE
triadic
#5146CE #CE5146 #46CE51
tetradic
#5146CE #CE467F #C3CE46 #46CE95
square
#5146CE #CE467F #C3CE46 #46CE95
split-complementary
#5146CE #CE9546 #7FCE46
monochromatic
#272079 #372DAA #5146CE #7F76DB #ACA7E8

Accessibility & contrast

On white

6.74
#5146CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5146CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5146CE
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146CE#FFFFFF#000000##FFFFFF
##5146CE1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#0056CB
Tritanopia (blue-blind)
#006984
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5146ce;
/* rgb */ color: rgb(81, 70, 206);
/* oklch */ color: oklch(49.1% 0.201 279.6);
Tailwind
colors: {
  custom: {
    50: '#8f7ade',
    500: '#5146ce',
    950: '#000000',
  },
}
SCSS
$custom: #5146ce;
$custom-light: #8f7ade;
$custom-dark: #000000;
JSON
{
  "hex": "#5146ce",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 206
  },
  "hsl": {
    "h": 244.853,
    "s": 58.12,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49141,
    "c": 0.20143,
    "h": 279.6
  },
  "luminance": 0.10586
}

Semantic roles & 50–950 ramp

primary
#5146CE
secondary
#D0D59B
accent
#E146D5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5146CE

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

Preview Lab → · Contrast checker → · Palette generator →

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