#5040D7#5040D7

#5040D7 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 49.0% C 0.219 H 279.3°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5040D7
RGBrgb(80, 64, 215)
HSLhsl(246, 65%, 55%)
HSVhsv(246, 70%, 84%)
CMYKcmyk(62.8%, 70.2%, 0%, 15.7%)
CIE-LABlab(38.34, 49.72, -75.02)
CIE-LCHlch(38.34, 90.00, 303.54°)
OKLaboklab(48.98% 0.0355 -0.2164)
OKLCHoklch(48.98% 0.219 279.3)
XYZxyz(17.4035, 10.2772, 65.3434)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5040D7 #C7D740
analogous
#407BD7 #5040D7 #9C40D7
triadic
#5040D7 #D75040 #40D750
tetradic
#5040D7 #D7407B #C7D740 #40D79C
square
#5040D7 #D7407B #C7D740 #40D79C
split-complementary
#5040D7 #D79C40 #7BD740
monochromatic
#261B81 #3526B4 #5040D7 #7E73E2 #ADA5EC

Accessibility & contrast

On white

6.87
#5040D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5040D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5040D7
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5040D7#FFFFFF#000000##FFFFFF
##5040D71.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DC
Deuteranopia (green-blind)
#0054D4
Tritanopia (blue-blind)
#006987
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5040d7;
/* rgb */ color: rgb(80, 64, 215);
/* oklch */ color: oklch(49.0% 0.219 279.3);
Tailwind
colors: {
  custom: {
    50: '#9177e5',
    500: '#5040d7',
    950: '#000000',
  },
}
SCSS
$custom: #5040d7;
$custom-light: #9177e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5040d7",
  "rgb": {
    "r": 80,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 246.358,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48977,
    "c": 0.21931,
    "h": 279.3
  },
  "luminance": 0.10279
}

Semantic roles & 50–950 ramp

primary
#5040D7
secondary
#D2D99A
accent
#E83FD6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5040D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5040D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva