#5140CF#5140CF

#5140CF is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.209 H 280.5°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#5140CF
RGBrgb(81, 64, 207)
HSLhsl(247, 60%, 53%)
HSVhsv(247, 69%, 81%)
CMYKcmyk(60.9%, 69.1%, 0%, 18.8%)
CIE-LABlab(37.70, 47.38, -71.44)
CIE-LCHlch(37.70, 85.73, 303.55°)
OKLaboklab(48.32% 0.0382 -0.2059)
OKLCHoklch(48.32% 0.209 280.5)
XYZxyz(16.4857, 9.9199, 60.0654)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5140CF #BECF40
analogous
#4076CF #5140CF #9840CF
triadic
#5140CF #CF5140 #40CF51
tetradic
#5140CF #CF4076 #BECF40 #40CF98
square
#5140CF #CF4076 #BECF40 #40CF98
split-complementary
#5140CF #CF9840 #76CF40
monochromatic
#281E77 #392AA8 #5140CF #7E71DB #AAA2E8

Accessibility & contrast

On white

7.04
#5140CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#5140CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5140CF
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5140CF#FFFFFF#000000##FFFFFF
##5140CF1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#006683
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5140cf;
/* rgb */ color: rgb(81, 64, 207);
/* oklch */ color: oklch(48.3% 0.209 280.5);
Tailwind
colors: {
  custom: {
    50: '#9077df',
    500: '#5140cf',
    950: '#000000',
  },
}
SCSS
$custom: #5140cf;
$custom-light: #9077df;
$custom-dark: #000000;
JSON
{
  "hex": "#5140cf",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 247.133,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48322,
    "c": 0.20945,
    "h": 280.5
  },
  "luminance": 0.09921
}

Semantic roles & 50–950 ramp

primary
#5140CF
secondary
#CDD497
accent
#E345D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5140CF

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

Preview Lab → · Contrast checker → · Palette generator →

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