#5031BC#5031BC

#5031BC is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.4% C 0.203 H 284.8°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#5031BC
RGBrgb(80, 49, 188)
HSLhsl(253, 59%, 46%)
HSVhsv(253, 74%, 74%)
CMYKcmyk(57.4%, 73.9%, 0%, 26.3%)
CIE-LABlab(32.99, 49.59, -68.08)
CIE-LCHlch(32.99, 84.23, 306.07°)
OKLaboklab(44.43% 0.0519 -0.1961)
OKLCHoklch(44.43% 0.203 284.8)
XYZxyz(13.4809, 7.5321, 48.3107)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5031BC #9DBC31
analogous
#3158BC #5031BC #9631BC
triadic
#5031BC #BC5031 #31BC50
tetradic
#5031BC #BC3158 #9DBC31 #31BC96
square
#5031BC #BC3158 #9DBC31 #31BC96
split-complementary
#5031BC #BC9631 #58BC31
monochromatic
#27185B #3B248B #5031BC #7357D3 #9B88E0

Accessibility & contrast

On white

8.38
#5031BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5031BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5031BC
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5031BC#FFFFFF#000000##FFFFFF
##5031BC1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C0
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#175874
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5031bc;
/* rgb */ color: rgb(80, 49, 188);
/* oklch */ color: oklch(44.4% 0.203 284.8);
Tailwind
colors: {
  custom: {
    50: '#8d6dd1',
    500: '#5031bc',
    950: '#000000',
  },
}
SCSS
$custom: #5031bc;
$custom-light: #8d6dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5031bc",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 253.381,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44425,
    "c": 0.2028,
    "h": 284.8
  },
  "luminance": 0.07533
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5031BC

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

Preview Lab → · Contrast checker → · Palette generator →

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