#5045BC#5045BC

#5045BC is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.4% C 0.180 H 281.2°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5045BC
RGBrgb(80, 69, 188)
HSLhsl(246, 47%, 50%)
HSVhsv(246, 63%, 74%)
CMYKcmyk(57.4%, 63.3%, 0%, 26.3%)
CIE-LABlab(37.10, 38.35, -61.35)
CIE-LCHlch(37.10, 72.35, 302.01°)
OKLaboklab(47.38% 0.035 -0.1764)
OKLCHoklch(47.38% 0.18 281.2)
XYZxyz(14.5107, 9.5916, 48.6539)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5045BC #B1BC45
analogous
#4575BC #5045BC #8B45BC
triadic
#5045BC #BC5045 #45BC50
tetradic
#5045BC #BC4575 #B1BC45 #45BC8B
square
#5045BC #BC4575 #B1BC45 #45BC8B
split-complementary
#5045BC #BC8B45 #75BC45
monochromatic
#292463 #3C3490 #5045BC #7A72CC #A59FDC

Accessibility & contrast

On white

7.20
#5045BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5045BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5045BC
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5045BC#FFFFFF#000000##FFFFFF
##5045BC1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#12627A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5045bc;
/* rgb */ color: rgb(80, 69, 188);
/* oklch */ color: oklch(47.4% 0.180 281.2);
Tailwind
colors: {
  custom: {
    50: '#8c79d1',
    500: '#5045bc',
    950: '#000000',
  },
}
SCSS
$custom: #5045bc;
$custom-light: #8c79d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5045bc",
  "rgb": {
    "r": 80,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 245.546,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47376,
    "c": 0.17979,
    "h": 281.2
  },
  "luminance": 0.09593
}

Semantic roles & 50–950 ramp

primary
#5045BC
secondary
#C4C994
accent
#D751CA
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5045BC

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

Preview Lab → · Contrast checker → · Palette generator →

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