#5038CB#5038CB

#5038CB is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.8% C 0.213 H 281.7°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5038CB
RGBrgb(80, 56, 203)
HSLhsl(250, 59%, 51%)
HSVhsv(250, 72%, 80%)
CMYKcmyk(60.6%, 72.4%, 0%, 20.4%)
CIE-LABlab(35.68, 50.39, -72.44)
CIE-LCHlch(35.68, 88.24, 304.82°)
OKLaboklab(46.76% 0.0434 -0.2088)
OKLCHoklch(46.76% 0.213 281.7)
XYZxyz(15.4986, 8.8445, 57.3788)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5038CB #B3CB38
analogous
#3869CB #5038CB #9938CB
triadic
#5038CB #CB5038 #38CB50
tetradic
#5038CB #CB3869 #B3CB38 #38CB99
square
#5038CB #CB3869 #B3CB38 #38CB99
split-complementary
#5038CB #CB9938 #69CB38
monochromatic
#291C6C #3C299D #5038CB #7B69D8 #A599E4

Accessibility & contrast

On white

7.58
#5038CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5038CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5038CB
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5038CB#FFFFFF#000000##FFFFFF
##5038CB1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CF
Deuteranopia (green-blind)
#004FC8
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5038cb;
/* rgb */ color: rgb(80, 56, 203);
/* oklch */ color: oklch(46.8% 0.213 281.7);
Tailwind
colors: {
  custom: {
    50: '#8f71dc',
    500: '#5038cb',
    950: '#000000',
  },
}
SCSS
$custom: #5038cb;
$custom-light: #8f71dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5038cb",
  "rgb": {
    "r": 80,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 249.796,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46755,
    "c": 0.2133,
    "h": 281.7
  },
  "luminance": 0.08846
}

Semantic roles & 50–950 ramp

primary
#5038CB
secondary
#C5D08F
accent
#E246C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5038CB

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

Preview Lab → · Contrast checker → · Palette generator →

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