#5040CB#5040CB

#5040CB is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.205 H 280.5°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5040CB
RGBrgb(80, 64, 203)
HSLhsl(247, 57%, 52%)
HSVhsv(247, 68%, 80%)
CMYKcmyk(60.6%, 68.5%, 0%, 20.4%)
CIE-LABlab(37.27, 46.00, -69.84)
CIE-LCHlch(37.27, 83.63, 303.37°)
OKLaboklab(47.89% 0.0375 -0.2013)
OKLCHoklch(47.89% 0.205 280.5)
XYZxyz(15.9178, 9.6829, 57.5185)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5040CB #BBCB40
analogous
#4076CB #5040CB #9540CB
triadic
#5040CB #CB5040 #40CB50
tetradic
#5040CB #CB4076 #BBCB40 #40CB95
square
#5040CB #CB4076 #BBCB40 #40CB95
split-complementary
#5040CB #CB9540 #76CB40
monochromatic
#281F72 #3A2CA2 #5040CB #7C70D8 #A8A0E5

Accessibility & contrast

On white

7.15
#5040CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5040CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5040CB
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5040CB#FFFFFF#000000##FFFFFF
##5040CB1.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0052C8
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5040cb;
/* rgb */ color: rgb(80, 64, 203);
/* oklch */ color: oklch(47.9% 0.205 280.5);
Tailwind
colors: {
  custom: {
    50: '#8e76dc',
    500: '#5040cb',
    950: '#000000',
  },
}
SCSS
$custom: #5040cb;
$custom-light: #8e76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5040cb",
  "rgb": {
    "r": 80,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 246.906,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47885,
    "c": 0.20472,
    "h": 280.5
  },
  "luminance": 0.09684
}

Semantic roles & 50–950 ramp

primary
#5040CB
secondary
#CBD295
accent
#E047CF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5040CB

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

Preview Lab → · Contrast checker → · Palette generator →

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