#5045CD#5045CD

#5045CD is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 48.8% C 0.202 H 279.5°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5045CD
RGBrgb(80, 69, 205)
HSLhsl(245, 58%, 54%)
HSVhsv(245, 66%, 80%)
CMYKcmyk(61%, 66.3%, 0%, 19.6%)
CIE-LABlab(38.50, 43.76, -68.98)
CIE-LCHlch(38.50, 81.69, 302.39°)
OKLaboklab(48.82% 0.0332 -0.1988)
OKLCHoklch(48.82% 0.202 279.5)
XYZxyz(16.4523, 10.3683, 58.8801)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5045CD #C2CD45
analogous
#457ECD #5045CD #9445CD
triadic
#5045CD #CD5045 #45CD50
tetradic
#5045CD #CD457E #C2CD45 #45CD94
square
#5045CD #CD457E #C2CD45 #45CD94
split-complementary
#5045CD #CD9445 #7ECD45
monochromatic
#272077 #372DA8 #5045CD #7D75DA #ABA5E7

Accessibility & contrast

On white

6.83
#5045CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5045CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5045CD
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5045CD#FFFFFF#000000##FFFFFF
##5045CD1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0055CA
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5045cd;
/* rgb */ color: rgb(80, 69, 205);
/* oklch */ color: oklch(48.8% 0.202 279.5);
Tailwind
colors: {
  custom: {
    50: '#8e7add',
    500: '#5045cd',
    950: '#000000',
  },
}
SCSS
$custom: #5045cd;
$custom-light: #8e7add;
$custom-dark: #000000;
JSON
{
  "hex": "#5045cd",
  "rgb": {
    "r": 80,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 244.853,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48823,
    "c": 0.20152,
    "h": 279.5
  },
  "luminance": 0.10369
}

Semantic roles & 50–950 ramp

primary
#5045CD
secondary
#CFD49A
accent
#E147D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5045CD

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

Preview Lab → · Contrast checker → · Palette generator →

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