#5042DD#5042DD

#5042DD is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.8% C 0.224 H 278.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#5042DD
RGBrgb(80, 66, 221)
HSLhsl(245, 70%, 56%)
HSVhsv(245, 70%, 87%)
CMYKcmyk(63.8%, 70.1%, 0%, 13.3%)
CIE-LABlab(39.28, 50.47, -76.91)
CIE-LCHlch(39.28, 91.99, 303.27°)
OKLaboklab(49.82% 0.0331 -0.222)
OKLCHoklch(49.82% 0.224 278.5)
XYZxyz(18.3034, 10.8209, 69.5167)
Luminance0.1082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5042DD #CFDD42
analogous
#4282DD #5042DD #9E42DD
triadic
#5042DD #DD5042 #42DD50
tetradic
#5042DD #DD4282 #CFDD42 #42DD9E
square
#5042DD #DD4282 #CFDD42 #42DD9E
split-complementary
#5042DD #DD9E42 #82DD42
monochromatic
#23198C #3122BF #5042DD #8076E6 #B0AAF0

Accessibility & contrast

On white

6.64
#5042DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5042DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5042DD
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5042DD#FFFFFF#000000##FFFFFF
##5042DD1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E2
Deuteranopia (green-blind)
#0056DA
Tritanopia (blue-blind)
#006C8B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5042dd;
/* rgb */ color: rgb(80, 66, 221);
/* oklch */ color: oklch(49.8% 0.224 278.5);
Tailwind
colors: {
  custom: {
    50: '#9278e9',
    500: '#5042dd',
    950: '#000000',
  },
}
SCSS
$custom: #5042dd;
$custom-light: #9278e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5042dd",
  "rgb": {
    "r": 80,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 245.419,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.49815,
    "c": 0.22442,
    "h": 278.5
  },
  "luminance": 0.10822
}

Semantic roles & 50–950 ramp

primary
#5042DD
secondary
#D8DD9D
accent
#EC3BDC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5042DD

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

Preview Lab → · Contrast checker → · Palette generator →

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