#5041D7#5041D7

#5041D7 is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.218 H 279.2°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5041D7
RGBrgb(80, 65, 215)
HSLhsl(246, 65%, 55%)
HSVhsv(246, 70%, 84%)
CMYKcmyk(62.8%, 69.8%, 0%, 15.7%)
CIE-LABlab(38.54, 49.17, -74.69)
CIE-LCHlch(38.54, 89.42, 303.36°)
OKLaboklab(49.12% 0.0348 -0.2155)
OKLCHoklch(49.12% 0.218 279.2)
XYZxyz(17.4604, 10.3910, 65.3624)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5041D7 #C8D741
analogous
#417DD7 #5041D7 #9B41D7
triadic
#5041D7 #D75041 #41D750
tetradic
#5041D7 #D7417D #C8D741 #41D79B
square
#5041D7 #D7417D #C8D741 #41D79B
split-complementary
#5041D7 #D79B41 #7DD741
monochromatic
#261B82 #3426B5 #5041D7 #7F74E2 #ADA6EC

Accessibility & contrast

On white

6.82
#5041D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5041D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5041D7
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5041D7#FFFFFF#000000##FFFFFF
##5041D71.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DB
Deuteranopia (green-blind)
#0055D4
Tritanopia (blue-blind)
#006A87
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5041d7;
/* rgb */ color: rgb(80, 65, 215);
/* oklch */ color: oklch(49.1% 0.218 279.2);
Tailwind
colors: {
  custom: {
    50: '#9177e5',
    500: '#5041d7',
    950: '#000000',
  },
}
SCSS
$custom: #5041d7;
$custom-light: #9177e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5041d7",
  "rgb": {
    "r": 80,
    "g": 65,
    "b": 215
  },
  "hsl": {
    "h": 246,
    "s": 65.217,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49119,
    "c": 0.21826,
    "h": 279.2
  },
  "luminance": 0.10392
}

Semantic roles & 50–950 ramp

primary
#5041D7
secondary
#D3D99A
accent
#E840D7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5041D7

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

Preview Lab → · Contrast checker → · Palette generator →

#5041D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva