#5042DE#5042DE

#5042DE is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.9% C 0.226 H 278.4°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5042DE
RGBrgb(80, 66, 222)
HSLhsl(245, 70%, 56%)
HSVhsv(245, 70%, 87%)
CMYKcmyk(64%, 70.3%, 0%, 12.9%)
CIE-LABlab(39.37, 50.78, -77.33)
CIE-LCHlch(39.37, 92.52, 303.29°)
OKLaboklab(49.91% 0.0329 -0.2232)
OKLCHoklch(49.91% 0.226 278.4)
XYZxyz(18.4371, 10.8743, 70.2204)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5042DE #D0DE42
analogous
#4282DE #5042DE #9E42DE
triadic
#5042DE #DE5042 #42DE50
tetradic
#5042DE #DE4282 #D0DE42 #42DE9E
square
#5042DE #DE4282 #D0DE42 #42DE9E
split-complementary
#5042DE #DE9E42 #82DE42
monochromatic
#23198D #3022C1 #5042DE #8076E7 #B0AAF0

Accessibility & contrast

On white

6.61
#5042DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5042DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5042DE
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5042DE#FFFFFF#000000##FFFFFF
##5042DE1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E3
Deuteranopia (green-blind)
#0056DB
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5042de;
/* rgb */ color: rgb(80, 66, 222);
/* oklch */ color: oklch(49.9% 0.226 278.4);
Tailwind
colors: {
  custom: {
    50: '#9278ea',
    500: '#5042de',
    950: '#000000',
  },
}
SCSS
$custom: #5042de;
$custom-light: #9278ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5042de",
  "rgb": {
    "r": 80,
    "g": 66,
    "b": 222
  },
  "hsl": {
    "h": 245.385,
    "s": 70.27,
    "l": 56.471
  },
  "oklch": {
    "l": 0.49907,
    "c": 0.22562,
    "h": 278.4
  },
  "luminance": 0.10876
}

Semantic roles & 50–950 ramp

primary
#5042DE
secondary
#D8DE9E
accent
#ED3BDD
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5042DE

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

Preview Lab → · Contrast checker → · Palette generator →

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