#5040CC#5040CC

#5040CC is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 48.0% C 0.206 H 280.4°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5040CC
RGBrgb(80, 64, 204)
HSLhsl(247, 58%, 53%)
HSVhsv(247, 69%, 80%)
CMYKcmyk(60.8%, 68.6%, 0%, 20%)
CIE-LABlab(37.35, 46.31, -70.27)
CIE-LCHlch(37.35, 84.16, 303.39°)
OKLaboklab(47.98% 0.0373 -0.2025)
OKLCHoklch(47.98% 0.206 280.4)
XYZxyz(16.0373, 9.7307, 58.1481)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5040CC #BCCC40
analogous
#4076CC #5040CC #9640CC
triadic
#5040CC #CC5040 #40CC50
tetradic
#5040CC #CC4076 #BCCC40 #40CC96
square
#5040CC #CC4076 #BCCC40 #40CC96
split-complementary
#5040CC #CC9640 #76CC40
monochromatic
#281F73 #392CA3 #5040CC #7C70D9 #A9A1E6

Accessibility & contrast

On white

7.13
#5040CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5040CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5040CC
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5040CC#FFFFFF#000000##FFFFFF
##5040CC1.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#006581
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5040cc;
/* rgb */ color: rgb(80, 64, 204);
/* oklch */ color: oklch(48.0% 0.206 280.4);
Tailwind
colors: {
  custom: {
    50: '#8f76dd',
    500: '#5040cc',
    950: '#000000',
  },
}
SCSS
$custom: #5040cc;
$custom-light: #8f76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5040cc",
  "rgb": {
    "r": 80,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 246.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.47975,
    "c": 0.20595,
    "h": 280.4
  },
  "luminance": 0.09732
}

Semantic roles & 50–950 ramp

primary
#5040CC
secondary
#CBD295
accent
#E147CF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5040CC

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

Preview Lab → · Contrast checker → · Palette generator →

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