#5147CC#5147CC

#5147CC is a mid, vivid blue. Relative luminance 0.106; OKLCH L 49.1% C 0.198 H 279.6°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5147CC
RGBrgb(81, 71, 204)
HSLhsl(245, 57%, 54%)
HSVhsv(245, 65%, 80%)
CMYKcmyk(60.3%, 65.2%, 0%, 20%)
CIE-LABlab(38.92, 42.42, -67.70)
CIE-LCHlch(38.92, 79.90, 302.07°)
OKLaboklab(49.13% 0.033 -0.195)
OKLCHoklch(49.13% 0.198 279.6)
XYZxyz(16.5422, 10.6142, 58.2921)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147CC #C2CC47
analogous
#4780CC #5147CC #9447CC
triadic
#5147CC #CC5147 #47CC51
tetradic
#5147CC #CC4780 #C2CC47 #47CC94
square
#5147CC #CC4780 #C2CC47 #47CC94
split-complementary
#5147CC #CC9447 #80CC47
monochromatic
#282177 #372EA7 #5147CC #7E77D9 #ACA7E7

Accessibility & contrast

On white

6.72
#5147CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5147CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147CC
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147CC#FFFFFF#000000##FFFFFF
##5147CC1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D0
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#006983
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5147cc;
/* rgb */ color: rgb(81, 71, 204);
/* oklch */ color: oklch(49.1% 0.198 279.6);
Tailwind
colors: {
  custom: {
    50: '#8f7bdd',
    500: '#5147cc',
    950: '#000000',
  },
}
SCSS
$custom: #5147cc;
$custom-light: #8f7bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5147cc",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 204
  },
  "hsl": {
    "h": 244.511,
    "s": 56.596,
    "l": 53.922
  },
  "oklch": {
    "l": 0.49127,
    "c": 0.19774,
    "h": 279.6
  },
  "luminance": 0.10615
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5147CC

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

Preview Lab → · Contrast checker → · Palette generator →

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