#5045CF#5045CF

#5045CF is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.0% C 0.204 H 279.3°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#5045CF
RGBrgb(80, 69, 207)
HSLhsl(245, 59%, 54%)
HSVhsv(245, 67%, 81%)
CMYKcmyk(61.4%, 66.7%, 0%, 18.8%)
CIE-LABlab(38.67, 44.39, -69.86)
CIE-LCHlch(38.67, 82.77, 302.43°)
OKLaboklab(49% 0.033 -0.2013)
OKLCHoklch(49% 0.204 279.3)
XYZxyz(16.6953, 10.4655, 60.1596)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5045CF #C4CF45
analogous
#457FCF #5045CF #9545CF
triadic
#5045CF #CF5045 #45CF50
tetradic
#5045CF #CF457F #C4CF45 #45CF95
square
#5045CF #CF457F #C4CF45 #45CF95
split-complementary
#5045CF #CF9545 #7FCF45
monochromatic
#27207A #362CAB #5045CF #7E76DC #ACA6E8

Accessibility & contrast

On white

6.79
#5045CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5045CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5045CF
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5045CF#FFFFFF#000000##FFFFFF
##5045CF1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0056CC
Tritanopia (blue-blind)
#006984
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5045cf;
/* rgb */ color: rgb(80, 69, 207);
/* oklch */ color: oklch(49.0% 0.204 279.3);
Tailwind
colors: {
  custom: {
    50: '#8f7adf',
    500: '#5045cf',
    950: '#000000',
  },
}
SCSS
$custom: #5045cf;
$custom-light: #8f7adf;
$custom-dark: #000000;
JSON
{
  "hex": "#5045cf",
  "rgb": {
    "r": 80,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 244.783,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48998,
    "c": 0.20402,
    "h": 279.3
  },
  "luminance": 0.10467
}

Semantic roles & 50–950 ramp

primary
#5045CF
secondary
#D1D59B
accent
#E246D6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5045CF

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

Preview Lab → · Contrast checker → · Palette generator →

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