#5147CE#5147CE

#5147CE is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.3% C 0.200 H 279.4°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5147CE
RGBrgb(81, 71, 206)
HSLhsl(244, 58%, 54%)
HSVhsv(244, 66%, 81%)
CMYKcmyk(60.7%, 65.5%, 0%, 19.2%)
CIE-LABlab(39.09, 43.06, -68.59)
CIE-LCHlch(39.09, 80.98, 302.12°)
OKLaboklab(49.3% 0.0328 -0.1976)
OKLCHoklch(49.3% 0.2 279.4)
XYZxyz(16.7836, 10.7108, 59.5635)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147CE #C4CE47
analogous
#4781CE #5147CE #9447CE
triadic
#5147CE #CE5147 #47CE51
tetradic
#5147CE #CE4781 #C4CE47 #47CE94
square
#5147CE #CE4781 #C4CE47 #47CE94
split-complementary
#5147CE #CE9447 #81CE47
monochromatic
#27217A #372DAA #5147CE #7F77DB #ACA8E8

Accessibility & contrast

On white

6.68
#5147CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5147CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147CE
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147CE#FFFFFF#000000##FFFFFF
##5147CE1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#0057CB
Tritanopia (blue-blind)
#006A84
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5147ce;
/* rgb */ color: rgb(81, 71, 206);
/* oklch */ color: oklch(49.3% 0.200 279.4);
Tailwind
colors: {
  custom: {
    50: '#8f7bde',
    500: '#5147ce',
    950: '#000000',
  },
}
SCSS
$custom: #5147ce;
$custom-light: #8f7bde;
$custom-dark: #000000;
JSON
{
  "hex": "#5147ce",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 206
  },
  "hsl": {
    "h": 244.444,
    "s": 57.94,
    "l": 54.314
  },
  "oklch": {
    "l": 0.49298,
    "c": 0.20027,
    "h": 279.4
  },
  "luminance": 0.10712
}

Semantic roles & 50–950 ramp

primary
#5147CE
secondary
#D1D59C
accent
#E147D6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5147CE

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

Preview Lab → · Contrast checker → · Palette generator →

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