#4E31B4#4E31B4

#4E31B4 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.5% C 0.194 H 285.2°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#4E31B4
RGBrgb(78, 49, 180)
HSLhsl(253, 57%, 45%)
HSVhsv(253, 73%, 71%)
CMYKcmyk(56.7%, 72.8%, 0%, 29.4%)
CIE-LABlab(32.06, 46.96, -64.88)
CIE-LCHlch(32.06, 80.09, 305.90°)
OKLaboklab(43.5% 0.0508 -0.1867)
OKLCHoklch(43.5% 0.194 285.2)
XYZxyz(12.4759, 7.1109, 43.8863)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31B4 #97B431
analogous
#3156B4 #4E31B4 #8F31B4
triadic
#4E31B4 #B44E31 #31B44E
tetradic
#4E31B4 #B43156 #97B431 #31B48F
square
#4E31B4 #B43156 #97B431 #31B48F
split-complementary
#4E31B4 #B48F31 #56B431
monochromatic
#241754 #392484 #4E31B4 #6E52D0 #9682DD

Accessibility & contrast

On white

8.67
#4E31B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4E31B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31B4
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31B4#FFFFFF#000000##FFFFFF
##4E31B41.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#1C556F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4e31b4;
/* rgb */ color: rgb(78, 49, 180);
/* oklch */ color: oklch(43.5% 0.194 285.2);
Tailwind
colors: {
  custom: {
    50: '#8b6ccc',
    500: '#4e31b4',
    950: '#000000',
  },
}
SCSS
$custom: #4e31b4;
$custom-light: #8b6ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31b4",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 253.282,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43495,
    "c": 0.19353,
    "h": 285.2
  },
  "luminance": 0.07112
}

Semantic roles & 50–950 ramp

primary
#4E31B4
secondary
#B6C67B
accent
#E047BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4E31B4

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

Preview Lab → · Contrast checker → · Palette generator →

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