#5031BB#5031BB

#5031BB is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.3% C 0.202 H 285.0°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#5031BB
RGBrgb(80, 49, 187)
HSLhsl(253, 58%, 46%)
HSVhsv(253, 74%, 73%)
CMYKcmyk(57.2%, 73.8%, 0%, 26.7%)
CIE-LABlab(32.90, 49.30, -67.64)
CIE-LCHlch(32.90, 83.70, 306.09°)
OKLaboklab(44.33% 0.0521 -0.1948)
OKLCHoklch(44.33% 0.202 285)
XYZxyz(13.3735, 7.4892, 47.7449)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5031BB #9CBB31
analogous
#3157BB #5031BB #9531BB
triadic
#5031BB #BB5031 #31BB50
tetradic
#5031BB #BB3157 #9CBB31 #31BB95
square
#5031BB #BB3157 #9CBB31 #31BB95
split-complementary
#5031BB #BB9531 #57BB31
monochromatic
#27185A #3B248B #5031BB #7256D3 #9B87E0

Accessibility & contrast

On white

8.41
#5031BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5031BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5031BB
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5031BB#FFFFFF#000000##FFFFFF
##5031BB1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BF
Deuteranopia (green-blind)
#0049B8
Tritanopia (blue-blind)
#195773
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5031bb;
/* rgb */ color: rgb(80, 49, 187);
/* oklch */ color: oklch(44.3% 0.202 285.0);
Tailwind
colors: {
  custom: {
    50: '#8d6dd1',
    500: '#5031bb',
    950: '#000000',
  },
}
SCSS
$custom: #5031bb;
$custom-light: #8d6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5031bb",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 253.478,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44331,
    "c": 0.20162,
    "h": 285
  },
  "luminance": 0.0749
}

Semantic roles & 50–950 ramp

primary
#5031BB
secondary
#B8C97F
accent
#E246BF
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5031BB

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

Preview Lab → · Contrast checker → · Palette generator →

#5031BB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva