#5042E2#5042E2

#5042E2 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.3% C 0.230 H 278.0°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5042E2
RGBrgb(80, 66, 226)
HSLhsl(245, 73%, 57%)
HSVhsv(245, 71%, 89%)
CMYKcmyk(64.6%, 70.8%, 0%, 11.4%)
CIE-LABlab(39.73, 52.02, -79.01)
CIE-LCHlch(39.73, 94.60, 303.36°)
OKLaboklab(50.28% 0.0322 -0.2281)
OKLCHoklch(50.28% 0.23 278)
XYZxyz(18.9795, 11.0913, 73.0774)
Luminance0.1109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5042E2 #D4E242
analogous
#4284E2 #5042E2 #A042E2
triadic
#5042E2 #E25042 #42E250
tetradic
#5042E2 #E24284 #D4E242 #42E2A0
square
#5042E2 #E24284 #D4E242 #42E2A0
split-complementary
#5042E2 #E2A042 #84E242
monochromatic
#211793 #2E1FC8 #5042E2 #8177EA #B2ACF2

Accessibility & contrast

On white

6.52
#5042E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5042E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5042E2
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5042E2#FFFFFF#000000##FFFFFF
##5042E21.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0057DF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5042e2;
/* rgb */ color: rgb(80, 66, 226);
/* oklch */ color: oklch(50.3% 0.230 278.0);
Tailwind
colors: {
  custom: {
    50: '#9278ec',
    500: '#5042e2',
    950: '#000000',
  },
}
SCSS
$custom: #5042e2;
$custom-light: #9278ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5042e2",
  "rgb": {
    "r": 80,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 245.25,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.50279,
    "c": 0.23039,
    "h": 278
  },
  "luminance": 0.11093
}

Semantic roles & 50–950 ramp

primary
#5042E2
secondary
#DBE09F
accent
#F038E0
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5042E2

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

Preview Lab → · Contrast checker → · Palette generator →

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