#5041DC#5041DC

#5041DC is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.6% C 0.224 H 278.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5041DC
RGBrgb(80, 65, 220)
HSLhsl(246, 69%, 56%)
HSVhsv(246, 70%, 86%)
CMYKcmyk(63.6%, 70.5%, 0%, 13.7%)
CIE-LABlab(38.99, 50.71, -76.81)
CIE-LCHlch(38.99, 92.04, 303.43°)
OKLaboklab(49.58% 0.0339 -0.2217)
OKLCHoklch(49.58% 0.224 278.7)
XYZxyz(18.1127, 10.6519, 68.7978)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5041DC #CDDC41
analogous
#4180DC #5041DC #9D41DC
triadic
#5041DC #DC5041 #41DC50
tetradic
#5041DC #DC4180 #CDDC41 #41DC9D
square
#5041DC #DC4180 #CDDC41 #41DC9D
split-complementary
#5041DC #DC9D41 #80DC41
monochromatic
#241989 #3223BD #5041DC #8075E6 #AFA8EF

Accessibility & contrast

On white

6.71
#5041DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5041DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5041DC
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5041DC#FFFFFF#000000##FFFFFF
##5041DC1.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)
#0062E1
Deuteranopia (green-blind)
#0056D9
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5041dc;
/* rgb */ color: rgb(80, 65, 220);
/* oklch */ color: oklch(49.6% 0.224 278.7);
Tailwind
colors: {
  custom: {
    50: '#9178e8',
    500: '#5041dc',
    950: '#000000',
  },
}
SCSS
$custom: #5041dc;
$custom-light: #9178e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5041dc",
  "rgb": {
    "r": 80,
    "g": 65,
    "b": 220
  },
  "hsl": {
    "h": 245.806,
    "s": 68.889,
    "l": 55.882
  },
  "oklch": {
    "l": 0.49581,
    "c": 0.22426,
    "h": 278.7
  },
  "luminance": 0.10653
}

Semantic roles & 50–950 ramp

primary
#5041DC
secondary
#D6DD9C
accent
#EC3CDB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5041DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5041DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva