#5040D9#5040D9

#5040D9 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.2% C 0.222 H 279.1°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#5040D9
RGBrgb(80, 64, 217)
HSLhsl(246, 67%, 55%)
HSVhsv(246, 71%, 85%)
CMYKcmyk(63.1%, 70.5%, 0%, 14.9%)
CIE-LABlab(38.52, 50.34, -75.87)
CIE-LCHlch(38.52, 91.05, 303.56°)
OKLaboklab(49.16% 0.0352 -0.2189)
OKLCHoklch(49.16% 0.222 279.1)
XYZxyz(17.6620, 10.3806, 66.7051)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5040D9 #C9D940
analogous
#407CD9 #5040D9 #9D40D9
triadic
#5040D9 #D95040 #40D950
tetradic
#5040D9 #D9407C #C9D940 #40D99D
square
#5040D9 #D9407C #C9D940 #40D99D
split-complementary
#5040D9 #D99D40 #7CD940
monochromatic
#251A84 #3424B7 #5040D9 #7F73E3 #AEA6ED

Accessibility & contrast

On white

6.83
#5040D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5040D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5040D9
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5040D9#FFFFFF#000000##FFFFFF
##5040D91.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061DE
Deuteranopia (green-blind)
#0055D6
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5040d9;
/* rgb */ color: rgb(80, 64, 217);
/* oklch */ color: oklch(49.2% 0.222 279.1);
Tailwind
colors: {
  custom: {
    50: '#9177e6',
    500: '#5040d9',
    950: '#000000',
  },
}
SCSS
$custom: #5040d9;
$custom-light: #9177e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5040d9",
  "rgb": {
    "r": 80,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 246.275,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49161,
    "c": 0.22171,
    "h": 279.1
  },
  "luminance": 0.10382
}

Semantic roles & 50–950 ramp

primary
#5040D9
secondary
#D4DA9A
accent
#EA3ED8
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5040D9

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

Preview Lab → · Contrast checker → · Palette generator →

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