#5149BD#5149BD

#5149BD is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.2% C 0.176 H 280.6°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5149BD
RGBrgb(81, 73, 189)
HSLhsl(244, 47%, 51%)
HSVhsv(244, 61%, 74%)
CMYKcmyk(57.1%, 61.4%, 0%, 25.9%)
CIE-LABlab(38.18, 36.43, -60.18)
CIE-LCHlch(38.18, 70.35, 301.19°)
OKLaboklab(48.21% 0.0324 -0.1729)
OKLCHoklch(48.21% 0.176 280.6)
XYZxyz(14.9583, 10.1875, 49.3124)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149BD #B5BD49
analogous
#497BBD #5149BD #8B49BD
triadic
#5149BD #BD5149 #49BD51
tetradic
#5149BD #BD497B #B5BD49 #49BD8B
square
#5149BD #BD497B #B5BD49 #49BD8B
split-complementary
#5149BD #BD8B49 #7BBD49
monochromatic
#2A2566 #3C3593 #5149BD #7C76CD #A7A3DE

Accessibility & contrast

On white

6.91
#5149BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5149BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149BD
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149BD#FFFFFF#000000##FFFFFF
##5149BD1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#0056BB
Tritanopia (blue-blind)
#14657C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5149bd;
/* rgb */ color: rgb(81, 73, 189);
/* oklch */ color: oklch(48.2% 0.176 280.6);
Tailwind
colors: {
  custom: {
    50: '#8c7cd2',
    500: '#5149bd',
    950: '#000000',
  },
}
SCSS
$custom: #5149bd;
$custom-light: #8c7cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5149bd",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 189
  },
  "hsl": {
    "h": 244.138,
    "s": 46.774,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48209,
    "c": 0.17588,
    "h": 280.6
  },
  "luminance": 0.10189
}

Semantic roles & 50–950 ramp

primary
#5149BD
secondary
#C7CA97
accent
#D651CD
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5149BD

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

Preview Lab → · Contrast checker → · Palette generator →

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