#5040CD#5040CD

#5040CD is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.207 H 280.3°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5040CD
RGBrgb(80, 64, 205)
HSLhsl(247, 59%, 53%)
HSVhsv(247, 69%, 80%)
CMYKcmyk(61%, 68.8%, 0%, 19.6%)
CIE-LABlab(37.44, 46.62, -70.71)
CIE-LCHlch(37.44, 84.70, 303.40°)
OKLaboklab(48.07% 0.0372 -0.2038)
OKLCHoklch(48.07% 0.207 280.3)
XYZxyz(16.1576, 9.7789, 58.7818)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5040CD #BDCD40
analogous
#4076CD #5040CD #9740CD
triadic
#5040CD #CD5040 #40CD50
tetradic
#5040CD #CD4076 #BDCD40 #40CD97
square
#5040CD #CD4076 #BDCD40 #40CD97
split-complementary
#5040CD #CD9740 #76CD40
monochromatic
#281E74 #392BA5 #5040CD #7C71DA #A9A1E6

Accessibility & contrast

On white

7.10
#5040CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5040CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5040CD
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5040CD#FFFFFF#000000##FFFFFF
##5040CD1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5040cd;
/* rgb */ color: rgb(80, 64, 205);
/* oklch */ color: oklch(48.1% 0.207 280.3);
Tailwind
colors: {
  custom: {
    50: '#8f76dd',
    500: '#5040cd',
    950: '#000000',
  },
}
SCSS
$custom: #5040cd;
$custom-light: #8f76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5040cd",
  "rgb": {
    "r": 80,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 246.809,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.48065,
    "c": 0.20717,
    "h": 280.3
  },
  "luminance": 0.0978
}

Semantic roles & 50–950 ramp

primary
#5040CD
secondary
#CCD396
accent
#E246D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5040CD

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

Preview Lab → · Contrast checker → · Palette generator →

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