#4E30AA#4E30AA

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

Color values

HEX#4E30AA
RGBrgb(78, 48, 170)
HSLhsl(255, 56%, 43%)
HSVhsv(255, 72%, 67%)
CMYKcmyk(54.1%, 71.8%, 0%, 33.3%)
CIE-LABlab(30.96, 44.54, -60.70)
CIE-LCHlch(30.96, 75.29, 306.27°)
OKLaboklab(42.44% 0.0537 -0.1745)
OKLCHoklch(42.44% 0.183 287.1)
XYZxyz(11.4524, 6.6353, 38.6997)
Luminance0.0664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30AA #8CAA30
analogous
#304FAA #4E30AA #8B30AA
triadic
#4E30AA #AA4E30 #30AA4E
tetradic
#4E30AA #AA304F #8CAA30 #30AA8B
square
#4E30AA #AA304F #8CAA30 #30AA8B
split-complementary
#4E30AA #AA8B30 #4FAA30
monochromatic
#22154B #38237A #4E30AA #6B4BCC #927BDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4E30AA#FFFFFF#000000##FFFFFF
##4E30AA1.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)
#004CAE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#28506A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e30aa;
/* rgb */ color: rgb(78, 48, 170);
/* oklch */ color: oklch(42.4% 0.183 287.1);
Tailwind
colors: {
  custom: {
    50: '#896bc4',
    500: '#4e30aa',
    950: '#000000',
  },
}
SCSS
$custom: #4e30aa;
$custom-light: #896bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30aa",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 254.754,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4244,
    "c": 0.1826,
    "h": 287.1
  },
  "luminance": 0.06636
}

Semantic roles & 50–950 ramp

primary
#4E30AA
secondary
#AFC274
accent
#DF49BA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E30AA

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

Preview Lab → · Contrast checker → · Palette generator →

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