#5041C8#5041C8

#5041C8 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.8% C 0.200 H 280.7°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#5041C8
RGBrgb(80, 65, 200)
HSLhsl(247, 55%, 52%)
HSVhsv(247, 68%, 78%)
CMYKcmyk(60%, 67.5%, 0%, 21.6%)
CIE-LABlab(37.22, 44.50, -68.18)
CIE-LCHlch(37.22, 81.41, 303.13°)
OKLaboklab(47.77% 0.0371 -0.1964)
OKLCHoklch(47.77% 0.2 280.7)
XYZxyz(15.6206, 9.6551, 55.6729)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5041C8 #B9C841
analogous
#4175C8 #5041C8 #9441C8
triadic
#5041C8 #C85041 #41C850
tetradic
#5041C8 #C84175 #B9C841 #41C894
square
#5041C8 #C84175 #B9C841 #41C894
split-complementary
#5041C8 #C89441 #75C841
monochromatic
#29206F #3A2E9E #5041C8 #7C70D6 #A7A0E3

Accessibility & contrast

On white

7.16
#5041C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5041C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5041C8
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5041C8#FFFFFF#000000##FFFFFF
##5041C81.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5041c8;
/* rgb */ color: rgb(80, 65, 200);
/* oklch */ color: oklch(47.8% 0.200 280.7);
Tailwind
colors: {
  custom: {
    50: '#8e77da',
    500: '#5041c8',
    950: '#000000',
  },
}
SCSS
$custom: #5041c8;
$custom-light: #8e77da;
$custom-dark: #000000;
JSON
{
  "hex": "#5041c8",
  "rgb": {
    "r": 80,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 246.667,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47769,
    "c": 0.19987,
    "h": 280.7
  },
  "luminance": 0.09656
}

Semantic roles & 50–950 ramp

primary
#5041C8
secondary
#C9D095
accent
#DE49CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5041C8

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

Preview Lab → · Contrast checker → · Palette generator →

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