#5147CB#5147CB

#5147CB is a mid, vivid blue. Relative luminance 0.106; OKLCH L 49.0% C 0.196 H 279.7°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5147CB
RGBrgb(81, 71, 203)
HSLhsl(245, 56%, 54%)
HSVhsv(245, 65%, 80%)
CMYKcmyk(60.1%, 65%, 0%, 20.4%)
CIE-LABlab(38.84, 42.11, -67.26)
CIE-LCHlch(38.84, 79.35, 302.05°)
OKLaboklab(49.04% 0.0331 -0.1937)
OKLCHoklch(49.04% 0.196 279.7)
XYZxyz(16.4227, 10.5664, 57.6624)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5147CB #C1CB47
analogous
#477FCB #5147CB #9347CB
triadic
#5147CB #CB5147 #47CB51
tetradic
#5147CB #CB477F #C1CB47 #47CB93
square
#5147CB #CB477F #C1CB47 #47CB93
split-complementary
#5147CB #CB9347 #7FCB47
monochromatic
#282176 #382FA6 #5147CB #7E77D8 #ABA6E6

Accessibility & contrast

On white

6.74
#5147CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5147CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5147CB
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5147CB#FFFFFF#000000##FFFFFF
##5147CB1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5147cb;
/* rgb */ color: rgb(81, 71, 203);
/* oklch */ color: oklch(49.0% 0.196 279.7);
Tailwind
colors: {
  custom: {
    50: '#8e7bdc',
    500: '#5147cb',
    950: '#000000',
  },
}
SCSS
$custom: #5147cb;
$custom-light: #8e7bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5147cb",
  "rgb": {
    "r": 81,
    "g": 71,
    "b": 203
  },
  "hsl": {
    "h": 244.545,
    "s": 55.932,
    "l": 53.725
  },
  "oklch": {
    "l": 0.49041,
    "c": 0.19647,
    "h": 279.7
  },
  "luminance": 0.10568
}

Semantic roles & 50–950 ramp

primary
#5147CB
secondary
#CFD39B
accent
#DF49D4
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5147CB

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

Preview Lab → · Contrast checker → · Palette generator →

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