#5149C2#5149C2

#5149C2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.6% C 0.182 H 280.1°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5149C2
RGBrgb(81, 73, 194)
HSLhsl(244, 50%, 52%)
HSVhsv(244, 62%, 76%)
CMYKcmyk(58.2%, 62.4%, 0%, 23.9%)
CIE-LABlab(38.57, 38.04, -62.47)
CIE-LCHlch(38.57, 73.14, 301.33°)
OKLaboklab(48.62% 0.0321 -0.1796)
OKLCHoklch(48.62% 0.182 280.1)
XYZxyz(15.5104, 10.4084, 52.2202)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149C2 #BAC249
analogous
#497EC2 #5149C2 #8E49C2
triadic
#5149C2 #C25149 #49C251
tetradic
#5149C2 #C2497E #BAC249 #49C28E
square
#5149C2 #C2497E #BAC249 #49C28E
split-complementary
#5149C2 #C28E49 #7EC249
monochromatic
#29246C #3A349A #5149C2 #7D77D1 #A9A5E1

Accessibility & contrast

On white

6.81
#5149C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5149C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149C2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149C2#FFFFFF#000000##FFFFFF
##5149C21.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#06677E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5149c2;
/* rgb */ color: rgb(81, 73, 194);
/* oklch */ color: oklch(48.6% 0.182 280.1);
Tailwind
colors: {
  custom: {
    50: '#8d7cd5',
    500: '#5149c2',
    950: '#000000',
  },
}
SCSS
$custom: #5149c2;
$custom-light: #8d7cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5149c2",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 194
  },
  "hsl": {
    "h": 243.967,
    "s": 49.794,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48615,
    "c": 0.18245,
    "h": 280.1
  },
  "luminance": 0.10409
}

Semantic roles & 50–950 ramp

primary
#5149C2
secondary
#CACE99
accent
#D94ED0
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5149C2

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

Preview Lab → · Contrast checker → · Palette generator →

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