#5149CD#5149CD

#5149CD is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.5% C 0.197 H 279.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#5149CD
RGBrgb(81, 73, 205)
HSLhsl(244, 57%, 55%)
HSVhsv(244, 64%, 80%)
CMYKcmyk(60.5%, 64.4%, 0%, 19.6%)
CIE-LABlab(39.45, 41.56, -67.43)
CIE-LCHlch(39.45, 79.21, 301.65°)
OKLaboklab(49.53% 0.0312 -0.1941)
OKLCHoklch(49.53% 0.197 279.1)
XYZxyz(16.7918, 10.9210, 58.9689)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149CD #C5CD49
analogous
#4983CD #5149CD #9349CD
triadic
#5149CD #CD5149 #49CD51
tetradic
#5149CD #CD4983 #C5CD49 #49CD93
square
#5149CD #CD4983 #C5CD49 #49CD93
split-complementary
#5149CD #CD9349 #83CD49
monochromatic
#27227A #362FAA #5149CD #7F79DA #ADA9E7

Accessibility & contrast

On white

6.59
#5149CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5149CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149CD
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149CD#FFFFFF#000000##FFFFFF
##5149CD1.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#0058CA
Tritanopia (blue-blind)
#006B84
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5149cd;
/* rgb */ color: rgb(81, 73, 205);
/* oklch */ color: oklch(49.5% 0.197 279.1);
Tailwind
colors: {
  custom: {
    50: '#8f7cdd',
    500: '#5149cd',
    950: '#000000',
  },
}
SCSS
$custom: #5149cd;
$custom-light: #8f7cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5149cd",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 205
  },
  "hsl": {
    "h": 243.636,
    "s": 56.897,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49533,
    "c": 0.19664,
    "h": 279.1
  },
  "luminance": 0.10922
}

Semantic roles & 50–950 ramp

primary
#5149CD
secondary
#D1D59D
accent
#E048D7
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5149CD

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

Preview Lab → · Contrast checker → · Palette generator →

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