#5045CB#5045CB

#5045CB is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.6% C 0.199 H 279.7°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5045CB
RGBrgb(80, 69, 203)
HSLhsl(245, 56%, 53%)
HSVhsv(245, 66%, 80%)
CMYKcmyk(60.6%, 66%, 0%, 20.4%)
CIE-LABlab(38.33, 43.13, -68.10)
CIE-LCHlch(38.33, 80.61, 302.35°)
OKLaboklab(48.65% 0.0335 -0.1962)
OKLCHoklch(48.65% 0.199 279.7)
XYZxyz(16.2125, 10.2723, 57.6168)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5045CB #C0CB45
analogous
#457DCB #5045CB #9345CB
triadic
#5045CB #CB5045 #45CB50
tetradic
#5045CB #CB457D #C0CB45 #45CB93
square
#5045CB #CB457D #C0CB45 #45CB93
split-complementary
#5045CB #CB9345 #7DCB45
monochromatic
#282175 #382EA5 #5045CB #7D75D8 #AAA5E6

Accessibility & contrast

On white

6.87
#5045CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5045CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5045CB
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5045CB#FFFFFF#000000##FFFFFF
##5045CB1.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#006882
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5045cb;
/* rgb */ color: rgb(80, 69, 203);
/* oklch */ color: oklch(48.6% 0.199 279.7);
Tailwind
colors: {
  custom: {
    50: '#8e7adc',
    500: '#5045cb',
    950: '#000000',
  },
}
SCSS
$custom: #5045cb;
$custom-light: #8e7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5045cb",
  "rgb": {
    "r": 80,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 244.925,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48649,
    "c": 0.199,
    "h": 279.7
  },
  "luminance": 0.10274
}

Semantic roles & 50–950 ramp

primary
#5045CB
secondary
#CED399
accent
#E048D3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5045CB

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

Preview Lab → · Contrast checker → · Palette generator →

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