#5038D2#5038D2

#5038D2 is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.4% C 0.222 H 280.9°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5038D2
RGBrgb(80, 56, 210)
HSLhsl(249, 63%, 52%)
HSVhsv(249, 73%, 82%)
CMYKcmyk(61.9%, 73.3%, 0%, 17.6%)
CIE-LABlab(36.34, 52.48, -75.42)
CIE-LCHlch(36.34, 91.88, 304.84°)
OKLaboklab(47.42% 0.0419 -0.2175)
OKLCHoklch(47.42% 0.222 280.9)
XYZxyz(16.3516, 9.1857, 61.8716)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5038D2 #BAD238
analogous
#386DD2 #5038D2 #9D38D2
triadic
#5038D2 #D25038 #38D250
tetradic
#5038D2 #D2386D #BAD238 #38D29D
square
#5038D2 #D2386D #BAD238 #38D29D
split-complementary
#5038D2 #D29D38 #6DD238
monochromatic
#291A75 #3A26A7 #5038D2 #7C6ADD #A89CE9

Accessibility & contrast

On white

7.40
#5038D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5038D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5038D2
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5038D2#FFFFFF#000000##FFFFFF
##5038D21.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD6
Deuteranopia (green-blind)
#0050CF
Tritanopia (blue-blind)
#006382
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5038d2;
/* rgb */ color: rgb(80, 56, 210);
/* oklch */ color: oklch(47.4% 0.222 280.9);
Tailwind
colors: {
  custom: {
    50: '#9072e1',
    500: '#5038d2',
    950: '#000000',
  },
}
SCSS
$custom: #5038d2;
$custom-light: #9072e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5038d2",
  "rgb": {
    "r": 80,
    "g": 56,
    "b": 210
  },
  "hsl": {
    "h": 249.351,
    "s": 63.115,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47418,
    "c": 0.22155,
    "h": 280.9
  },
  "luminance": 0.09187
}

Semantic roles & 50–950 ramp

primary
#5038D2
secondary
#CAD591
accent
#E642CD
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0815
muted
#7E7B84

Preview Lab

Preview with #5038D2

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

Preview Lab → · Contrast checker → · Palette generator →

#5038D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva