#5149B2#5149B2

#5149B2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.3% C 0.161 H 281.7°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5149B2
RGBrgb(81, 73, 178)
HSLhsl(245, 42%, 49%)
HSVhsv(245, 59%, 70%)
CMYKcmyk(54.5%, 59%, 0%, 30.2%)
CIE-LABlab(37.35, 32.90, -55.05)
CIE-LCHlch(37.35, 64.13, 300.86°)
OKLaboklab(47.34% 0.0328 -0.1578)
OKLCHoklch(47.34% 0.161 281.7)
XYZxyz(13.8093, 9.7279, 43.2609)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149B2 #AAB249
analogous
#4976B2 #5149B2 #8649B2
triadic
#5149B2 #B25149 #49B251
tetradic
#5149B2 #B24976 #AAB249 #49B286
square
#5149B2 #B24976 #AAB249 #49B286
split-complementary
#5149B2 #B28649 #76B249
monochromatic
#2A255B #3D3787 #5149B2 #7973C5 #A29ED7

Accessibility & contrast

On white

7.13
#5149B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5149B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5149B2
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149B2#FFFFFF#000000##FFFFFF
##5149B21.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#256276
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5149b2;
/* rgb */ color: rgb(81, 73, 178);
/* oklch */ color: oklch(47.3% 0.161 281.7);
Tailwind
colors: {
  custom: {
    50: '#8a7cca',
    500: '#5149b2',
    950: '#000000',
  },
}
SCSS
$custom: #5149b2;
$custom-light: #8a7cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5149b2",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 178
  },
  "hsl": {
    "h": 244.571,
    "s": 41.833,
    "l": 49.216
  },
  "oklch": {
    "l": 0.4734,
    "c": 0.16115,
    "h": 281.7
  },
  "luminance": 0.09729
}

Semantic roles & 50–950 ramp

primary
#5149B2
secondary
#C0C493
accent
#D256C8
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0D0913
muted
#7D7B82

Preview Lab

Preview with #5149B2

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

Preview Lab → · Contrast checker → · Palette generator →

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