#5140D2#5140D2

#5140D2 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.213 H 280.2°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5140D2
RGBrgb(81, 64, 210)
HSLhsl(247, 62%, 54%)
HSVhsv(247, 70%, 82%)
CMYKcmyk(61.4%, 69.5%, 0%, 17.6%)
CIE-LABlab(37.96, 48.31, -72.74)
CIE-LCHlch(37.96, 87.32, 303.59°)
OKLaboklab(48.59% 0.0377 -0.2097)
OKLCHoklch(48.59% 0.213 280.2)
XYZxyz(16.8559, 10.0680, 62.0153)
Luminance0.1007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140D2 #C1D240
analogous
#4078D2 #5140D2 #9A40D2
triadic
#5140D2 #D25140 #40D251
tetradic
#5140D2 #D24078 #C1D240 #40D29A
square
#5140D2 #D24078 #C1D240 #40D29A
split-complementary
#5140D2 #D29A40 #78D240
monochromatic
#281D7B #3829AC #5140D2 #7E72DE #ABA3E9

Accessibility & contrast

On white

6.97
#5140D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5140D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5140D2
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140D2#FFFFFF#000000##FFFFFF
##5140D21.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5140d2;
/* rgb */ color: rgb(81, 64, 210);
/* oklch */ color: oklch(48.6% 0.213 280.2);
Tailwind
colors: {
  custom: {
    50: '#9077e1',
    500: '#5140d2',
    950: '#000000',
  },
}
SCSS
$custom: #5140d2;
$custom-light: #9077e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5140d2",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 246.986,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48594,
    "c": 0.21309,
    "h": 280.2
  },
  "luminance": 0.10069
}

Semantic roles & 50–950 ramp

primary
#5140D2
secondary
#CFD698
accent
#E543D2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5140D2

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

Preview Lab → · Contrast checker → · Palette generator →

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