#5147CD#5147CD

#5147CD is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.2% C 0.199 H 279.5°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5147CD
RGBrgb(81, 71, 205)
HSLhsl(244, 57%, 54%)
HSVhsv(244, 65%, 80%)
CMYKcmyk(60.5%, 65.4%, 0%, 19.6%)
CIE-LABlab(39.01, 42.74, -68.15)
CIE-LCHlch(39.01, 80.44, 302.10°)
OKLaboklab(49.21% 0.0329 -0.1963)
OKLCHoklch(49.21% 0.199 279.5)
XYZxyz(16.6625, 10.6624, 58.9258)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147CD #C3CD47
analogous
#4780CD #5147CD #9447CD
triadic
#5147CD #CD5147 #47CD51
tetradic
#5147CD #CD4780 #C3CD47 #47CD94
square
#5147CD #CD4780 #C3CD47 #47CD94
split-complementary
#5147CD #CD9447 #80CD47
monochromatic
#272179 #372EA9 #5147CD #7F77DA #ACA7E7

Accessibility & contrast

On white

6.70
#5147CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5147CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147CD
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147CD#FFFFFF#000000##FFFFFF
##5147CD1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#0057CA
Tritanopia (blue-blind)
#006984
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5147cd;
/* rgb */ color: rgb(81, 71, 205);
/* oklch */ color: oklch(49.2% 0.199 279.5);
Tailwind
colors: {
  custom: {
    50: '#8f7bdd',
    500: '#5147cd',
    950: '#000000',
  },
}
SCSS
$custom: #5147cd;
$custom-light: #8f7bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5147cd",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 205
  },
  "hsl": {
    "h": 244.478,
    "s": 57.265,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49212,
    "c": 0.199,
    "h": 279.5
  },
  "luminance": 0.10664
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5147CD

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

Preview Lab → · Contrast checker → · Palette generator →

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