#5149CC#5149CC

#5149CC is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.4% C 0.195 H 279.2°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5149CC
RGBrgb(81, 73, 204)
HSLhsl(244, 56%, 54%)
HSVhsv(244, 64%, 80%)
CMYKcmyk(60.3%, 64.2%, 0%, 20%)
CIE-LABlab(39.37, 41.24, -66.98)
CIE-LCHlch(39.37, 78.66, 301.62°)
OKLaboklab(49.45% 0.0313 -0.1928)
OKLCHoklch(49.45% 0.195 279.2)
XYZxyz(16.6715, 10.8728, 58.3352)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149CC #C4CC49
analogous
#4983CC #5149CC #9349CC
triadic
#5149CC #CC5149 #49CC51
tetradic
#5149CC #CC4983 #C4CC49 #49CC93
square
#5149CC #CC4983 #C4CC49 #49CC93
split-complementary
#5149CC #CC9349 #83CC49
monochromatic
#272279 #372FA9 #5149CC #7F79D9 #ACA9E7

Accessibility & contrast

On white

6.61
#5149CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5149CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149CC
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149CC#FFFFFF#000000##FFFFFF
##5149CC1.006.613.176.61
#FFFFFF6.611.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0058C9
Tritanopia (blue-blind)
#006A84
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5149cc;
/* rgb */ color: rgb(81, 73, 204);
/* oklch */ color: oklch(49.4% 0.195 279.2);
Tailwind
colors: {
  custom: {
    50: '#8e7cdd',
    500: '#5149cc',
    950: '#000000',
  },
}
SCSS
$custom: #5149cc;
$custom-light: #8e7cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5149cc",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 204
  },
  "hsl": {
    "h": 243.664,
    "s": 56.223,
    "l": 54.314
  },
  "oklch": {
    "l": 0.49448,
    "c": 0.19536,
    "h": 279.2
  },
  "luminance": 0.10874
}

Semantic roles & 50–950 ramp

primary
#5149CC
secondary
#D1D49D
accent
#E048D6
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5149CC

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

Preview Lab → · Contrast checker → · Palette generator →

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