#5042C8#5042C8

#5042C8 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.9% C 0.199 H 280.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5042C8
RGBrgb(80, 66, 200)
HSLhsl(246, 55%, 52%)
HSVhsv(246, 67%, 78%)
CMYKcmyk(60%, 67%, 0%, 21.6%)
CIE-LABlab(37.43, 43.92, -67.83)
CIE-LCHlch(37.43, 80.81, 302.92°)
OKLaboklab(47.92% 0.0363 -0.1954)
OKLCHoklch(47.92% 0.199 280.5)
XYZxyz(15.6785, 9.7709, 55.6922)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5042C8 #BAC842
analogous
#4277C8 #5042C8 #9342C8
triadic
#5042C8 #C85042 #42C850
tetradic
#5042C8 #C84277 #BAC842 #42C893
square
#5042C8 #C84277 #BAC842 #42C893
split-complementary
#5042C8 #C89342 #77C842
monochromatic
#29206F #3A2E9F #5042C8 #7C71D6 #A8A1E4

Accessibility & contrast

On white

7.11
#5042C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5042C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5042C8
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5042C8#FFFFFF#000000##FFFFFF
##5042C81.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5042c8;
/* rgb */ color: rgb(80, 66, 200);
/* oklch */ color: oklch(47.9% 0.199 280.5);
Tailwind
colors: {
  custom: {
    50: '#8e78da',
    500: '#5042c8',
    950: '#000000',
  },
}
SCSS
$custom: #5042c8;
$custom-light: #8e78da;
$custom-dark: #000000;
JSON
{
  "hex": "#5042c8",
  "rgb": {
    "r": 80,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 246.269,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47922,
    "c": 0.19872,
    "h": 280.5
  },
  "luminance": 0.09772
}

Semantic roles & 50–950 ramp

primary
#5042C8
secondary
#CAD096
accent
#DE4ACF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #5042C8

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

Preview Lab → · Contrast checker → · Palette generator →

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