#5031BE#5031BE

#5031BE is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.6% C 0.205 H 284.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#5031BE
RGBrgb(80, 49, 190)
HSLhsl(253, 59%, 47%)
HSVhsv(253, 74%, 75%)
CMYKcmyk(57.9%, 74.2%, 0%, 25.5%)
CIE-LABlab(33.18, 50.18, -68.95)
CIE-LCHlch(33.18, 85.28, 306.05°)
OKLaboklab(44.61% 0.0514 -0.1986)
OKLCHoklch(44.61% 0.205 284.5)
XYZxyz(13.6980, 7.6190, 49.4540)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5031BE #9FBE31
analogous
#3159BE #5031BE #9631BE
triadic
#5031BE #BE5031 #31BE50
tetradic
#5031BE #BE3159 #9FBE31 #31BE96
square
#5031BE #BE3159 #9FBE31 #31BE96
split-complementary
#5031BE #BE9631 #59BE31
monochromatic
#27185D #3C248D #5031BE #7358D4 #9C89E1

Accessibility & contrast

On white

8.32
#5031BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5031BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5031BE
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5031BE#FFFFFF#000000##FFFFFF
##5031BE1.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C2
Deuteranopia (green-blind)
#0049BB
Tritanopia (blue-blind)
#135875
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5031be;
/* rgb */ color: rgb(80, 49, 190);
/* oklch */ color: oklch(44.6% 0.205 284.5);
Tailwind
colors: {
  custom: {
    50: '#8d6dd3',
    500: '#5031be',
    950: '#000000',
  },
}
SCSS
$custom: #5031be;
$custom-light: #8d6dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5031be",
  "rgb": {
    "r": 80,
    "g": 49,
    "b": 190
  },
  "hsl": {
    "h": 253.191,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44614,
    "c": 0.20514,
    "h": 284.5
  },
  "luminance": 0.0762
}

Semantic roles & 50–950 ramp

primary
#5031BE
secondary
#BACA80
accent
#E246C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5031BE

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

Preview Lab → · Contrast checker → · Palette generator →

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