#4E31A8#4E31A8

#4E31A8 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.179 H 287.3°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#4E31A8
RGBrgb(78, 49, 168)
HSLhsl(255, 55%, 43%)
HSVhsv(255, 71%, 66%)
CMYKcmyk(53.6%, 70.8%, 0%, 34.1%)
CIE-LABlab(30.98, 43.40, -59.47)
CIE-LCHlch(30.98, 73.62, 306.12°)
OKLaboklab(42.4% 0.0533 -0.1709)
OKLCHoklch(42.4% 0.179 287.3)
XYZxyz(11.3060, 6.6429, 37.7247)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E31A8 #8BA831
analogous
#314FA8 #4E31A8 #8A31A8
triadic
#4E31A8 #A84E31 #31A84E
tetradic
#4E31A8 #A8314F #8BA831 #31A88A
square
#4E31A8 #A8314F #8BA831 #31A88A
split-complementary
#4E31A8 #A88A31 #4FA831
monochromatic
#221549 #382379 #4E31A8 #6B4CCB #927BD8

Accessibility & contrast

On white

9.02
#4E31A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#4E31A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E31A8
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E31A8#FFFFFF#000000##FFFFFF
##4E31A81.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAC
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#2A5069
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e31a8;
/* rgb */ color: rgb(78, 49, 168);
/* oklch */ color: oklch(42.4% 0.179 287.3);
Tailwind
colors: {
  custom: {
    50: '#896cc3',
    500: '#4e31a8',
    950: '#000000',
  },
}
SCSS
$custom: #4e31a8;
$custom-light: #896cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#4e31a8",
  "rgb": {
    "r": 78,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 254.622,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42398,
    "c": 0.17901,
    "h": 287.3
  },
  "luminance": 0.06643
}

Semantic roles & 50–950 ramp

primary
#4E31A8
secondary
#AEC174
accent
#DE4ABA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4E31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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