#5038CA#5038CA

#5038CA is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.7% C 0.212 H 281.9°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5038CA
RGBrgb(80, 56, 202)
HSLhsl(250, 58%, 51%)
HSVhsv(250, 72%, 79%)
CMYKcmyk(60.4%, 72.3%, 0%, 20.8%)
CIE-LABlab(35.59, 50.09, -72.01)
CIE-LCHlch(35.59, 87.72, 304.82°)
OKLaboklab(46.66% 0.0436 -0.2076)
OKLCHoklch(46.66% 0.212 281.9)
XYZxyz(15.3798, 8.7970, 56.7532)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5038CA #B2CA38
analogous
#3869CA #5038CA #9938CA
triadic
#5038CA #CA5038 #38CA50
tetradic
#5038CA #CA3869 #B2CA38 #38CA99
square
#5038CA #CA3869 #B2CA38 #38CA99
split-complementary
#5038CA #CA9938 #69CA38
monochromatic
#291D6B #3C299B #5038CA #7A68D7 #A599E4

Accessibility & contrast

On white

7.61
#5038CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5038CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5038CA
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5038CA#FFFFFF#000000##FFFFFF
##5038CA1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5038ca;
/* rgb */ color: rgb(80, 56, 202);
/* oklch */ color: oklch(46.7% 0.212 281.9);
Tailwind
colors: {
  custom: {
    50: '#8f71db',
    500: '#5038ca',
    950: '#000000',
  },
}
SCSS
$custom: #5038ca;
$custom-light: #8f71db;
$custom-dark: #000000;
JSON
{
  "hex": "#5038ca",
  "rgb": {
    "r": 80,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 249.863,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46661,
    "c": 0.21212,
    "h": 281.9
  },
  "luminance": 0.08798
}

Semantic roles & 50–950 ramp

primary
#5038CA
secondary
#C5CF8E
accent
#E147C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5038CA

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

Preview Lab → · Contrast checker → · Palette generator →

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