#5040C8#5040C8

#5040C8 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.6% C 0.201 H 280.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5040C8
RGBrgb(80, 64, 200)
HSLhsl(247, 55%, 52%)
HSVhsv(247, 68%, 78%)
CMYKcmyk(60%, 68%, 0%, 21.6%)
CIE-LABlab(37.01, 45.07, -68.52)
CIE-LCHlch(37.01, 82.01, 303.34°)
OKLaboklab(47.62% 0.0379 -0.1974)
OKLCHoklch(47.62% 0.201 280.9)
XYZxyz(15.5637, 9.5413, 55.6539)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5040C8 #B8C840
analogous
#4074C8 #5040C8 #9440C8
triadic
#5040C8 #C85040 #40C850
tetradic
#5040C8 #C84074 #B8C840 #40C894
square
#5040C8 #C84074 #B8C840 #40C894
split-complementary
#5040C8 #C89440 #74C840
monochromatic
#29206E #3B2D9D #5040C8 #7C70D6 #A79FE3

Accessibility & contrast

On white

7.22
#5040C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5040C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5040C8
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5040C8#FFFFFF#000000##FFFFFF
##5040C81.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5040c8;
/* rgb */ color: rgb(80, 64, 200);
/* oklch */ color: oklch(47.6% 0.201 280.9);
Tailwind
colors: {
  custom: {
    50: '#8e76da',
    500: '#5040c8',
    950: '#000000',
  },
}
SCSS
$custom: #5040c8;
$custom-light: #8e76da;
$custom-dark: #000000;
JSON
{
  "hex": "#5040c8",
  "rgb": {
    "r": 80,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 247.059,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47618,
    "c": 0.20101,
    "h": 280.9
  },
  "luminance": 0.09542
}

Semantic roles & 50–950 ramp

primary
#5040C8
secondary
#C9D094
accent
#DF49CD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5040C8

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

Preview Lab → · Contrast checker → · Palette generator →

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