#5045D2#5045D2

#5045D2 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.3% C 0.208 H 279.0°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5045D2
RGBrgb(80, 69, 210)
HSLhsl(245, 61%, 55%)
HSVhsv(245, 67%, 82%)
CMYKcmyk(61.9%, 67.1%, 0%, 17.6%)
CIE-LABlab(38.92, 45.34, -71.18)
CIE-LCHlch(38.92, 84.39, 302.50°)
OKLaboklab(49.26% 0.0326 -0.2052)
OKLCHoklch(49.26% 0.208 279)
XYZxyz(17.0655, 10.6135, 62.1096)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5045D2 #C7D245
analogous
#4580D2 #5045D2 #9745D2
triadic
#5045D2 #D25045 #45D250
tetradic
#5045D2 #D24580 #C7D245 #45D297
square
#5045D2 #D24580 #C7D245 #45D297
split-complementary
#5045D2 #D29745 #80D245
monochromatic
#261F7E #352AAF #5045D2 #7E76DE #ADA8EA

Accessibility & contrast

On white

6.72
#5045D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5045D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5045D2
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5045D2#FFFFFF#000000##FFFFFF
##5045D21.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5045d2;
/* rgb */ color: rgb(80, 69, 210);
/* oklch */ color: oklch(49.3% 0.208 279.0);
Tailwind
colors: {
  custom: {
    50: '#8f7ae1',
    500: '#5045d2',
    950: '#000000',
  },
}
SCSS
$custom: #5045d2;
$custom-light: #8f7ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#5045d2",
  "rgb": {
    "r": 80,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 244.681,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49263,
    "c": 0.20775,
    "h": 279
  },
  "luminance": 0.10615
}

Semantic roles & 50–950 ramp

primary
#5045D2
secondary
#D2D79C
accent
#E444D8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5045D2

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

Preview Lab → · Contrast checker → · Palette generator →

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