#5045D7#5045D7

#5045D7 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.7% C 0.214 H 278.6°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#5045D7
RGBrgb(80, 69, 215)
HSLhsl(245, 65%, 56%)
HSVhsv(245, 68%, 84%)
CMYKcmyk(62.8%, 67.9%, 0%, 15.7%)
CIE-LABlab(39.35, 46.92, -73.34)
CIE-LCHlch(39.35, 87.07, 302.61°)
OKLaboklab(49.71% 0.0319 -0.2115)
OKLCHoklch(49.71% 0.214 278.6)
XYZxyz(17.6982, 10.8666, 65.4416)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5045D7 #CCD745
analogous
#4583D7 #5045D7 #9945D7
triadic
#5045D7 #D75045 #45D750
tetradic
#5045D7 #D74583 #CCD745 #45D799
square
#5045D7 #D74583 #CCD745 #45D799
split-complementary
#5045D7 #D79945 #83D745
monochromatic
#241D85 #3227B7 #5045D7 #7F77E2 #AFAAED

Accessibility & contrast

On white

6.62
#5045D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#5045D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5045D7
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5045D7#FFFFFF#000000##FFFFFF
##5045D71.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DB
Deuteranopia (green-blind)
#0057D4
Tritanopia (blue-blind)
#006C88
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5045d7;
/* rgb */ color: rgb(80, 69, 215);
/* oklch */ color: oklch(49.7% 0.214 278.6);
Tailwind
colors: {
  custom: {
    50: '#907ae4',
    500: '#5045d7',
    950: '#000000',
  },
}
SCSS
$custom: #5045d7;
$custom-light: #907ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#5045d7",
  "rgb": {
    "r": 80,
    "g": 69,
    "b": 215
  },
  "hsl": {
    "h": 244.521,
    "s": 64.602,
    "l": 55.686
  },
  "oklch": {
    "l": 0.49708,
    "c": 0.21392,
    "h": 278.6
  },
  "luminance": 0.10868
}

Semantic roles & 50–950 ramp

primary
#5045D7
secondary
#D6DA9E
accent
#E840DB
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5045D7

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

Preview Lab → · Contrast checker → · Palette generator →

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