#5040D3#5040D3

#5040D3 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.214 H 279.7°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#5040D3
RGBrgb(80, 64, 211)
HSLhsl(247, 63%, 54%)
HSVhsv(247, 70%, 83%)
CMYKcmyk(62.1%, 69.7%, 0%, 17.3%)
CIE-LABlab(37.98, 48.48, -73.30)
CIE-LCHlch(37.98, 87.89, 303.48°)
OKLaboklab(48.61% 0.0362 -0.2114)
OKLCHoklch(48.61% 0.214 279.7)
XYZxyz(16.8958, 10.0741, 62.6695)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5040D3 #C3D340
analogous
#407AD3 #5040D3 #9A40D3
triadic
#5040D3 #D35040 #40D350
tetradic
#5040D3 #D3407A #C3D340 #40D39A
square
#5040D3 #D3407A #C3D340 #40D39A
split-complementary
#5040D3 #D39A40 #7AD340
monochromatic
#271D7C #3728AE #5040D3 #7E72DE #ABA3EA

Accessibility & contrast

On white

6.97
#5040D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#5040D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5040D3
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5040D3#FFFFFF#000000##FFFFFF
##5040D31.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD7
Deuteranopia (green-blind)
#0054D0
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5040d3;
/* rgb */ color: rgb(80, 64, 211);
/* oklch */ color: oklch(48.6% 0.214 279.7);
Tailwind
colors: {
  custom: {
    50: '#9077e2',
    500: '#5040d3',
    950: '#000000',
  },
}
SCSS
$custom: #5040d3;
$custom-light: #9077e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5040d3",
  "rgb": {
    "r": 80,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 246.531,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48609,
    "c": 0.21448,
    "h": 279.7
  },
  "luminance": 0.10075
}

Semantic roles & 50–950 ramp

primary
#5040D3
secondary
#D0D798
accent
#E642D4
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #5040D3

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

Preview Lab → · Contrast checker → · Palette generator →

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