#5149CA#5149CA

#5149CA is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.3% C 0.193 H 279.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5149CA
RGBrgb(81, 73, 202)
HSLhsl(244, 55%, 54%)
HSVhsv(244, 64%, 79%)
CMYKcmyk(59.9%, 63.9%, 0%, 20.8%)
CIE-LABlab(39.20, 40.60, -66.09)
CIE-LCHlch(39.20, 77.56, 301.57°)
OKLaboklab(49.28% 0.0315 -0.1902)
OKLCHoklch(49.28% 0.193 279.4)
XYZxyz(16.4332, 10.7775, 57.0800)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149CA #C2CA49
analogous
#4982CA #5149CA #9249CA
triadic
#5149CA #CA5149 #49CA51
tetradic
#5149CA #CA4982 #C2CA49 #49CA92
square
#5149CA #CA4982 #C2CA49 #49CA92
split-complementary
#5149CA #CA9249 #82CA49
monochromatic
#282276 #3730A6 #5149CA #7E78D8 #ACA8E6

Accessibility & contrast

On white

6.65
#5149CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5149CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149CA
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149CA#FFFFFF#000000##FFFFFF
##5149CA1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0057C7
Tritanopia (blue-blind)
#006A83
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5149ca;
/* rgb */ color: rgb(81, 73, 202);
/* oklch */ color: oklch(49.3% 0.193 279.4);
Tailwind
colors: {
  custom: {
    50: '#8e7cdb',
    500: '#5149ca',
    950: '#000000',
  },
}
SCSS
$custom: #5149ca;
$custom-light: #8e7cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5149ca",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 202
  },
  "hsl": {
    "h": 243.721,
    "s": 54.894,
    "l": 53.922
  },
  "oklch": {
    "l": 0.4928,
    "c": 0.19281,
    "h": 279.4
  },
  "luminance": 0.10779
}

Semantic roles & 50–950 ramp

primary
#5149CA
secondary
#D0D39C
accent
#DE4AD5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #5149CA

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

Preview Lab → · Contrast checker → · Palette generator →

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