#5040DE#5040DE

#5040DE is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.6% C 0.228 H 278.6°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5040DE
RGBrgb(80, 64, 222)
HSLhsl(246, 71%, 56%)
HSVhsv(246, 71%, 87%)
CMYKcmyk(64%, 71.2%, 0%, 12.9%)
CIE-LABlab(38.98, 51.87, -77.98)
CIE-LCHlch(38.98, 93.66, 303.63°)
OKLaboklab(49.63% 0.0342 -0.2251)
OKLCHoklch(49.63% 0.228 278.6)
XYZxyz(18.3222, 10.6447, 70.1822)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5040DE #CEDE40
analogous
#407FDE #5040DE #9F40DE
triadic
#5040DE #DE5040 #40DE50
tetradic
#5040DE #DE407F #CEDE40 #40DE9F
square
#5040DE #DE407F #CEDE40 #40DE9F
split-complementary
#5040DE #DE9F40 #7FDE40
monochromatic
#24188B #3121C0 #5040DE #8074E7 #B0A8F0

Accessibility & contrast

On white

6.71
#5040DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5040DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5040DE
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5040DE#FFFFFF#000000##FFFFFF
##5040DE1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E3
Deuteranopia (green-blind)
#0055DB
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5040de;
/* rgb */ color: rgb(80, 64, 222);
/* oklch */ color: oklch(49.6% 0.228 278.6);
Tailwind
colors: {
  custom: {
    50: '#9277ea',
    500: '#5040de',
    950: '#000000',
  },
}
SCSS
$custom: #5040de;
$custom-light: #9277ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5040de",
  "rgb": {
    "r": 80,
    "g": 64,
    "b": 222
  },
  "hsl": {
    "h": 246.076,
    "s": 70.536,
    "l": 56.078
  },
  "oklch": {
    "l": 0.49627,
    "c": 0.22767,
    "h": 278.6
  },
  "luminance": 0.10646
}

Semantic roles & 50–950 ramp

primary
#5040DE
secondary
#D7DE9C
accent
#ED3ADB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5040DE

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

Preview Lab → · Contrast checker → · Palette generator →

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