#5139CB#5139CB

#5139CB is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 47.0% C 0.212 H 282.0°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5139CB
RGBrgb(81, 57, 203)
HSLhsl(250, 58%, 51%)
HSVhsv(250, 72%, 80%)
CMYKcmyk(60.1%, 71.9%, 0%, 20.4%)
CIE-LABlab(35.96, 49.99, -71.98)
CIE-LCHlch(35.96, 87.64, 304.78°)
OKLaboklab(46.97% 0.0441 -0.2075)
OKLCHoklch(46.97% 0.212 282)
XYZxyz(15.6326, 8.9863, 57.3991)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5139CB #B3CB39
analogous
#396ACB #5139CB #9A39CB
triadic
#5139CB #CB5139 #39CB51
tetradic
#5139CB #CB396A #B3CB39 #39CB9A
square
#5139CB #CB396A #B3CB39 #39CB9A
split-complementary
#5139CB #CB9A39 #6ACB39
monochromatic
#2A1D6D #3C299D #5139CB #7C69D8 #A69AE4

Accessibility & contrast

On white

7.51
#5139CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5139CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5139CB
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5139CB#FFFFFF#000000##FFFFFF
##5139CB1.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5139cb;
/* rgb */ color: rgb(81, 57, 203);
/* oklch */ color: oklch(47.0% 0.212 282.0);
Tailwind
colors: {
  custom: {
    50: '#8f72dc',
    500: '#5139cb',
    950: '#000000',
  },
}
SCSS
$custom: #5139cb;
$custom-light: #8f72dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5139cb",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 203
  },
  "hsl": {
    "h": 249.863,
    "s": 58.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46971,
    "c": 0.21212,
    "h": 282
  },
  "luminance": 0.08987
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5139CB

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

Preview Lab → · Contrast checker → · Palette generator →

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