#5040D4#5040D4

#5040D4 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.7% C 0.216 H 279.6°. Best body text is #FFFFFF at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#5040D4
RGBrgb(80, 64, 212)
HSLhsl(246, 63%, 54%)
HSVhsv(246, 70%, 83%)
CMYKcmyk(62.3%, 69.8%, 0%, 16.9%)
CIE-LABlab(38.06, 48.79, -73.73)
CIE-LCHlch(38.06, 88.42, 303.49°)
OKLaboklab(48.7% 0.036 -0.2127)
OKLCHoklch(48.7% 0.216 279.6)
XYZxyz(17.0215, 10.1244, 63.3318)
Luminance0.1013 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5040D4 #C4D440
analogous
#407AD4 #5040D4 #9A40D4
triadic
#5040D4 #D45040 #40D450
tetradic
#5040D4 #D4407A #C4D440 #40D49A
square
#5040D4 #D4407A #C4D440 #40D49A
split-complementary
#5040D4 #D49A40 #7AD440
monochromatic
#271C7D #3627AF #5040D4 #7E72DF #ACA4EA

Accessibility & contrast

On white

6.94
#5040D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#5040D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5040D4
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5040D4#FFFFFF#000000##FFFFFF
##5040D41.006.943.036.94
#FFFFFF6.941.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#0054D1
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5040d4;
/* rgb */ color: rgb(80, 64, 212);
/* oklch */ color: oklch(48.7% 0.216 279.6);
Tailwind
colors: {
  custom: {
    50: '#9077e2',
    500: '#5040d4',
    950: '#000000',
  },
}
SCSS
$custom: #5040d4;
$custom-light: #9077e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5040d4",
  "rgb": {
    "r": 80,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 246.486,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48701,
    "c": 0.2157,
    "h": 279.6
  },
  "luminance": 0.10126
}

Semantic roles & 50–950 ramp

primary
#5040D4
secondary
#D1D798
accent
#E642D4
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5040D4

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

Preview Lab → · Contrast checker → · Palette generator →

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