#5040CE#5040CE

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

Color values

HEX#5040CE
RGBrgb(80, 64, 206)
HSLhsl(247, 59%, 53%)
HSVhsv(247, 69%, 81%)
CMYKcmyk(61.2%, 68.9%, 0%, 19.2%)
CIE-LABlab(37.53, 46.94, -71.14)
CIE-LCHlch(37.53, 85.23, 303.41°)
OKLaboklab(48.16% 0.037 -0.2051)
OKLCHoklch(48.16% 0.208 280.2)
XYZxyz(16.2787, 9.8273, 59.4196)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5040CE #BECE40
analogous
#4077CE #5040CE #9740CE
triadic
#5040CE #CE5040 #40CE50
tetradic
#5040CE #CE4077 #BECE40 #40CE97
square
#5040CE #CE4077 #BECE40 #40CE97
split-complementary
#5040CE #CE9740 #77CE40
monochromatic
#281E75 #392BA6 #5040CE #7D71DA #A9A1E7

Accessibility & contrast

On white

7.08
#5040CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5040CE
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5040CE#FFFFFF#000000##FFFFFF
##5040CE1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.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: #5040ce;
/* rgb */ color: rgb(80, 64, 206);
/* oklch */ color: oklch(48.2% 0.208 280.2);
Tailwind
colors: {
  custom: {
    50: '#8f76de',
    500: '#5040ce',
    950: '#000000',
  },
}
SCSS
$custom: #5040ce;
$custom-light: #8f76de;
$custom-dark: #000000;
JSON
{
  "hex": "#5040ce",
  "rgb": {
    "r": 80,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 246.761,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48155,
    "c": 0.2084,
    "h": 280.2
  },
  "luminance": 0.09828
}

Semantic roles & 50–950 ramp

primary
#5040CE
secondary
#CDD496
accent
#E245D1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5040CE

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

Preview Lab → · Contrast checker → · Palette generator →

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