#5140D1#5140D1

#5140D1 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.5% C 0.212 H 280.3°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5140D1
RGBrgb(81, 64, 209)
HSLhsl(247, 61%, 54%)
HSVhsv(247, 69%, 82%)
CMYKcmyk(61.2%, 69.4%, 0%, 18%)
CIE-LABlab(37.88, 48.00, -72.31)
CIE-LCHlch(37.88, 86.79, 303.58°)
OKLaboklab(48.5% 0.0378 -0.2085)
OKLCHoklch(48.5% 0.212 280.3)
XYZxyz(16.7317, 10.0183, 61.3613)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140D1 #C0D140
analogous
#4078D1 #5140D1 #9940D1
triadic
#5140D1 #D15140 #40D151
tetradic
#5140D1 #D14078 #C0D140 #40D199
square
#5140D1 #D14078 #C0D140 #40D199
split-complementary
#5140D1 #D19940 #78D140
monochromatic
#281D79 #3829AB #5140D1 #7E71DD #ABA3E9

Accessibility & contrast

On white

6.99
#5140D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5140D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5140D1
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140D1#FFFFFF#000000##FFFFFF
##5140D11.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED5
Deuteranopia (green-blind)
#0054CE
Tritanopia (blue-blind)
#006784
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5140d1;
/* rgb */ color: rgb(81, 64, 209);
/* oklch */ color: oklch(48.5% 0.212 280.3);
Tailwind
colors: {
  custom: {
    50: '#9077e0',
    500: '#5140d1',
    950: '#000000',
  },
}
SCSS
$custom: #5140d1;
$custom-light: #9077e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5140d1",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 247.034,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48503,
    "c": 0.21188,
    "h": 280.3
  },
  "luminance": 0.1002
}

Semantic roles & 50–950 ramp

primary
#5140D1
secondary
#CED597
accent
#E444D1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5140D1

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

Preview Lab → · Contrast checker → · Palette generator →

#5140D1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva