#5042DA#5042DA

#5042DA is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.5% C 0.221 H 278.8°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5042DA
RGBrgb(80, 66, 218)
HSLhsl(246, 67%, 56%)
HSVhsv(246, 70%, 85%)
CMYKcmyk(63.3%, 69.7%, 0%, 14.5%)
CIE-LABlab(39.01, 49.54, -75.64)
CIE-LCHlch(39.01, 90.42, 303.23°)
OKLaboklab(49.54% 0.0336 -0.2182)
OKLCHoklch(49.54% 0.221 278.8)
XYZxyz(17.9073, 10.6624, 67.4305)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5042DA #CCDA42
analogous
#4280DA #5042DA #9C42DA
triadic
#5042DA #DA5042 #42DA50
tetradic
#5042DA #DA4280 #CCDA42 #42DA9C
square
#5042DA #DA4280 #CCDA42 #42DA9C
split-complementary
#5042DA #DA9C42 #80DA42
monochromatic
#241A87 #3224BA #5042DA #7F75E4 #AFA8EE

Accessibility & contrast

On white

6.70
#5042DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5042DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5042DA
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5042DA#FFFFFF#000000##FFFFFF
##5042DA1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DF
Deuteranopia (green-blind)
#0056D7
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5042da;
/* rgb */ color: rgb(80, 66, 218);
/* oklch */ color: oklch(49.5% 0.221 278.8);
Tailwind
colors: {
  custom: {
    50: '#9178e7',
    500: '#5042da',
    950: '#000000',
  },
}
SCSS
$custom: #5042da;
$custom-light: #9178e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5042da",
  "rgb": {
    "r": 80,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 245.526,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.49538,
    "c": 0.22081,
    "h": 278.8
  },
  "luminance": 0.10664
}

Semantic roles & 50–950 ramp

primary
#5042DA
secondary
#D6DB9C
accent
#EA3EDA
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5042DA

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

Preview Lab → · Contrast checker → · Palette generator →

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