#4E31B2#4E31B2

#4E31B2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.191 H 285.5°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#4E31B2
RGBrgb(78, 49, 178)
HSLhsl(253, 57%, 45%)
HSVhsv(253, 72%, 70%)
CMYKcmyk(56.2%, 72.5%, 0%, 30.2%)
CIE-LABlab(31.88, 46.37, -63.99)
CIE-LCHlch(31.88, 79.02, 305.93°)
OKLaboklab(43.31% 0.0512 -0.1841)
OKLCHoklch(43.31% 0.191 285.5)
XYZxyz(12.2737, 7.0300, 42.8210)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31B2 #95B231
analogous
#3155B2 #4E31B2 #8E31B2
triadic
#4E31B2 #B24E31 #31B24E
tetradic
#4E31B2 #B23155 #95B231 #31B28E
square
#4E31B2 #B23155 #95B231 #31B28E
split-complementary
#4E31B2 #B28E31 #55B231
monochromatic
#241752 #392482 #4E31B2 #6D51CF #9681DC

Accessibility & contrast

On white

8.73
#4E31B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4E31B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31B2
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31B2#FFFFFF#000000##FFFFFF
##4E31B21.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#1F546E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e31b2;
/* rgb */ color: rgb(78, 49, 178);
/* oklch */ color: oklch(43.3% 0.191 285.5);
Tailwind
colors: {
  custom: {
    50: '#8a6cca',
    500: '#4e31b2',
    950: '#000000',
  },
}
SCSS
$custom: #4e31b2;
$custom-light: #8a6cca;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31b2",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 253.488,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4331,
    "c": 0.19113,
    "h": 285.5
  },
  "luminance": 0.07031
}

Semantic roles & 50–950 ramp

primary
#4E31B2
secondary
#B4C579
accent
#E048BE
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E31B2

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

Preview Lab → · Contrast checker → · Palette generator →

#4E31B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva