#5140CE#5140CE

#5140CE is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.208 H 280.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#5140CE
RGBrgb(81, 64, 206)
HSLhsl(247, 59%, 53%)
HSVhsv(247, 69%, 81%)
CMYKcmyk(60.7%, 68.9%, 0%, 19.2%)
CIE-LABlab(37.61, 47.08, -71.01)
CIE-LCHlch(37.61, 85.20, 303.54°)
OKLaboklab(48.23% 0.0383 -0.2047)
OKLCHoklch(48.23% 0.208 280.6)
XYZxyz(16.3638, 9.8712, 59.4236)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140CE #BDCE40
analogous
#4076CE #5140CE #9840CE
triadic
#5140CE #CE5140 #40CE51
tetradic
#5140CE #CE4076 #BDCE40 #40CE98
square
#5140CE #CE4076 #BDCE40 #40CE98
split-complementary
#5140CE #CE9840 #76CE40
monochromatic
#291E75 #392BA6 #5140CE #7D71DA #AAA1E7

Accessibility & contrast

On white

7.06
#5140CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5140CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5140CE
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140CE#FFFFFF#000000##FFFFFF
##5140CE1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED2
Deuteranopia (green-blind)
#0053CB
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5140ce;
/* rgb */ color: rgb(81, 64, 206);
/* oklch */ color: oklch(48.2% 0.208 280.6);
Tailwind
colors: {
  custom: {
    50: '#8f77de',
    500: '#5140ce',
    950: '#000000',
  },
}
SCSS
$custom: #5140ce;
$custom-light: #8f77de;
$custom-dark: #000000;
JSON
{
  "hex": "#5140ce",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 247.183,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48232,
    "c": 0.20823,
    "h": 280.6
  },
  "luminance": 0.09872
}

Semantic roles & 50–950 ramp

primary
#5140CE
secondary
#CCD496
accent
#E245D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5140CE

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

Preview Lab → · Contrast checker → · Palette generator →

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