#4E30A3#4E30A3

#4E30A3 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.8% C 0.174 H 288.5°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#4E30A3
RGBrgb(78, 48, 163)
HSLhsl(256, 55%, 41%)
HSVhsv(256, 71%, 64%)
CMYKcmyk(52.1%, 70.6%, 0%, 36.1%)
CIE-LABlab(30.35, 42.47, -57.49)
CIE-LCHlch(30.35, 71.48, 306.45°)
OKLaboklab(41.81% 0.0551 -0.1651)
OKLCHoklch(41.81% 0.174 288.5)
XYZxyz(10.8078, 6.3774, 35.3047)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30A3 #85A330
analogous
#304CA3 #4E30A3 #8830A3
triadic
#4E30A3 #A34E30 #30A34E
tetradic
#4E30A3 #A3304C #85A330 #30A388
square
#4E30A3 #A3304C #85A330 #30A388
split-complementary
#4E30A3 #A38830 #4CA330
monochromatic
#211444 #372274 #4E30A3 #6947C9 #9077D7

Accessibility & contrast

On white

9.23
#4E30A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#4E30A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30A3
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30A3#FFFFFF#000000##FFFFFF
##4E30A31.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#2F4E66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4e30a3;
/* rgb */ color: rgb(78, 48, 163);
/* oklch */ color: oklch(41.8% 0.174 288.5);
Tailwind
colors: {
  custom: {
    50: '#886bbf',
    500: '#4e30a3',
    950: '#000000',
  },
}
SCSS
$custom: #4e30a3;
$custom-light: #886bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30a3",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 163
  },
  "hsl": {
    "h": 255.652,
    "s": 54.502,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41811,
    "c": 0.17406,
    "h": 288.5
  },
  "luminance": 0.06378
}

Semantic roles & 50–950 ramp

primary
#4E30A3
secondary
#AABF70
accent
#DE4AB7
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E30A3

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

Preview Lab → · Contrast checker → · Palette generator →

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