#5140DA#5140DA

#5140DA is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.3% C 0.223 H 279.4°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#5140DA
RGBrgb(81, 64, 218)
HSLhsl(247, 68%, 55%)
HSVhsv(247, 71%, 85%)
CMYKcmyk(62.8%, 70.6%, 0%, 14.5%)
CIE-LABlab(38.68, 50.77, -76.16)
CIE-LCHlch(38.68, 91.53, 303.69°)
OKLaboklab(49.33% 0.0363 -0.2197)
OKLCHoklch(49.33% 0.223 279.4)
XYZxyz(17.8776, 10.4767, 67.3962)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140DA #C9DA40
analogous
#407CDA #5140DA #9E40DA
triadic
#5140DA #DA5140 #40DA51
tetradic
#5140DA #DA407C #C9DA40 #40DA9E
square
#5140DA #DA407C #C9DA40 #40DA9E
split-complementary
#5140DA #DA9E40 #7CDA40
monochromatic
#261A86 #3424B9 #5140DA #8073E4 #AEA7EE

Accessibility & contrast

On white

6.78
#5140DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5140DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5140DA
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140DA#FFFFFF#000000##FFFFFF
##5140DA1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DF
Deuteranopia (green-blind)
#0055D7
Tritanopia (blue-blind)
#006A89
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5140da;
/* rgb */ color: rgb(81, 64, 218);
/* oklch */ color: oklch(49.3% 0.223 279.4);
Tailwind
colors: {
  custom: {
    50: '#9277e7',
    500: '#5140da',
    950: '#000000',
  },
}
SCSS
$custom: #5140da;
$custom-light: #9277e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5140da",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 218
  },
  "hsl": {
    "h": 246.623,
    "s": 67.544,
    "l": 55.294
  },
  "oklch": {
    "l": 0.49328,
    "c": 0.22272,
    "h": 279.4
  },
  "luminance": 0.10478
}

Semantic roles & 50–950 ramp

primary
#5140DA
secondary
#D4DB9B
accent
#EA3DD7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5140DA

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

Preview Lab → · Contrast checker → · Palette generator →

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