#4E30AB#4E30AB

#4E30AB is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.5% C 0.184 H 286.9°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#4E30AB
RGBrgb(78, 48, 171)
HSLhsl(255, 56%, 43%)
HSVhsv(255, 72%, 67%)
CMYKcmyk(54.4%, 71.9%, 0%, 32.9%)
CIE-LABlab(31.05, 44.83, -61.16)
CIE-LCHlch(31.05, 75.83, 306.24°)
OKLaboklab(42.53% 0.0535 -0.1758)
OKLCHoklch(42.53% 0.184 286.9)
XYZxyz(11.5473, 6.6733, 39.1998)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30AB #8DAB30
analogous
#3050AB #4E30AB #8B30AB
triadic
#4E30AB #AB4E30 #30AB4E
tetradic
#4E30AB #AB3050 #8DAB30 #30AB8B
square
#4E30AB #AB3050 #8DAB30 #30AB8B
split-complementary
#4E30AB #AB8B30 #50AB30
monochromatic
#22154B #38237B #4E30AB #6B4CCD #927BDA

Accessibility & contrast

On white

8.99
#4E30AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E30AB
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30AB#FFFFFF#000000##FFFFFF
##4E30AB1.008.992.338.99
#FFFFFF8.991.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#27516A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e30ab;
/* rgb */ color: rgb(78, 48, 171);
/* oklch */ color: oklch(42.5% 0.184 286.9);
Tailwind
colors: {
  custom: {
    50: '#896bc5',
    500: '#4e30ab',
    950: '#000000',
  },
}
SCSS
$custom: #4e30ab;
$custom-light: #896bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30ab",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 254.634,
    "s": 56.164,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42531,
    "c": 0.18381,
    "h": 286.9
  },
  "luminance": 0.06674
}

Semantic roles & 50–950 ramp

primary
#4E30AB
secondary
#AFC374
accent
#DF48BB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #4E30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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