#4E30A4#4E30A4

#4E30A4 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.175 H 288.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#4E30A4
RGBrgb(78, 48, 164)
HSLhsl(256, 55%, 42%)
HSVhsv(256, 71%, 64%)
CMYKcmyk(52.4%, 70.7%, 0%, 35.7%)
CIE-LABlab(30.43, 42.77, -57.96)
CIE-LCHlch(30.43, 72.03, 306.42°)
OKLaboklab(41.9% 0.0549 -0.1664)
OKLCHoklch(41.9% 0.175 288.3)
XYZxyz(10.8977, 6.4134, 35.7785)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30A4 #86A430
analogous
#304CA4 #4E30A4 #8830A4
triadic
#4E30A4 #A44E30 #30A44E
tetradic
#4E30A4 #A4304C #86A430 #30A488
square
#4E30A4 #A4304C #86A430 #30A488
split-complementary
#4E30A4 #A48830 #4CA430
monochromatic
#211445 #372275 #4E30A4 #6948C9 #9077D7

Accessibility & contrast

On white

9.20
#4E30A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E30A4
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30A4#FFFFFF#000000##FFFFFF
##4E30A41.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#2E4E66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e30a4;
/* rgb */ color: rgb(78, 48, 164);
/* oklch */ color: oklch(41.9% 0.175 288.3);
Tailwind
colors: {
  custom: {
    50: '#886bc0',
    500: '#4e30a4',
    950: '#000000',
  },
}
SCSS
$custom: #4e30a4;
$custom-light: #886bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30a4",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 164
  },
  "hsl": {
    "h": 255.517,
    "s": 54.717,
    "l": 41.569
  },
  "oklch": {
    "l": 0.419,
    "c": 0.17528,
    "h": 288.3
  },
  "luminance": 0.06414
}

Semantic roles & 50–950 ramp

primary
#4E30A4
secondary
#ABBF70
accent
#DE4AB8
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E30A4

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

Preview Lab → · Contrast checker → · Palette generator →

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