#5149D3#5149D3

#5149D3 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 50.0% C 0.204 H 278.6°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#5149D3
RGBrgb(81, 73, 211)
HSLhsl(243, 61%, 56%)
HSVhsv(243, 65%, 83%)
CMYKcmyk(61.6%, 65.4%, 0%, 17.3%)
CIE-LABlab(39.94, 43.48, -70.08)
CIE-LCHlch(39.94, 82.47, 301.82°)
OKLaboklab(50.05% 0.0306 -0.2019)
OKLCHoklch(50.05% 0.204 278.6)
XYZxyz(17.5300, 11.2162, 62.8566)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5149D3 #CBD349
analogous
#4986D3 #5149D3 #9649D3
triadic
#5149D3 #D35149 #49D351
tetradic
#5149D3 #D34986 #CBD349 #49D396
square
#5149D3 #D34986 #CBD349 #49D396
split-complementary
#5149D3 #D39649 #86D349
monochromatic
#251F82 #332BB3 #5149D3 #807ADF #AFACEB

Accessibility & contrast

On white

6.47
#5149D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5149D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5149D3
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5149D3#FFFFFF#000000##FFFFFF
##5149D31.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#0058D0
Tritanopia (blue-blind)
#006D88
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5149d3;
/* rgb */ color: rgb(81, 73, 211);
/* oklch */ color: oklch(50.0% 0.204 278.6);
Tailwind
colors: {
  custom: {
    50: '#907de2',
    500: '#5149d3',
    950: '#000000',
  },
}
SCSS
$custom: #5149d3;
$custom-light: #907de2;
$custom-dark: #000000;
JSON
{
  "hex": "#5149d3",
  "rgb": {
    "r": 81,
    "g": 73,
    "b": 211
  },
  "hsl": {
    "h": 243.478,
    "s": 61.062,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50046,
    "c": 0.20423,
    "h": 278.6
  },
  "luminance": 0.11218
}

Semantic roles & 50–950 ramp

primary
#5149D3
secondary
#D5D99F
accent
#E444DB
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #5149D3

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

Preview Lab → · Contrast checker → · Palette generator →

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