#5045DC#5045DC

#5045DC is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.2% C 0.220 H 278.1°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5045DC
RGBrgb(80, 69, 220)
HSLhsl(244, 68%, 57%)
HSVhsv(244, 69%, 86%)
CMYKcmyk(63.6%, 68.6%, 0%, 13.7%)
CIE-LABlab(39.79, 48.49, -75.49)
CIE-LCHlch(39.79, 89.72, 302.71°)
OKLaboklab(50.16% 0.0312 -0.2178)
OKLCHoklch(50.16% 0.22 278.1)
XYZxyz(18.3505, 11.1275, 68.8771)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5045DC #D1DC45
analogous
#4586DC #5045DC #9C45DC
triadic
#5045DC #DC5045 #45DC50
tetradic
#5045DC #DC4586 #D1DC45 #45DC9C
square
#5045DC #DC4586 #D1DC45 #45DC9C
split-complementary
#5045DC #DC9C45 #86DC45
monochromatic
#231A8C #2F24C0 #5045DC #8079E6 #B1ACEF

Accessibility & contrast

On white

6.51
#5045DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5045DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5045DC
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5045DC#FFFFFF#000000##FFFFFF
##5045DC1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E1
Deuteranopia (green-blind)
#0057D9
Tritanopia (blue-blind)
#006E8B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5045dc;
/* rgb */ color: rgb(80, 69, 220);
/* oklch */ color: oklch(50.2% 0.220 278.1);
Tailwind
colors: {
  custom: {
    50: '#917ae8',
    500: '#5045dc',
    950: '#000000',
  },
}
SCSS
$custom: #5045dc;
$custom-light: #917ae8;
$custom-dark: #000000;
JSON
{
  "hex": "#5045dc",
  "rgb": {
    "r": 80,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 244.371,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.50158,
    "c": 0.22003,
    "h": 278.1
  },
  "luminance": 0.11129
}

Semantic roles & 50–950 ramp

primary
#5045DC
secondary
#D9DDA0
accent
#EB3DDE
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5045DC

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

Preview Lab → · Contrast checker → · Palette generator →

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