#4E30A5#4E30A5

#4E30A5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.0% C 0.177 H 288.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#4E30A5
RGBrgb(78, 48, 165)
HSLhsl(255, 55%, 42%)
HSVhsv(255, 71%, 65%)
CMYKcmyk(52.7%, 70.9%, 0%, 35.3%)
CIE-LABlab(30.52, 43.06, -58.42)
CIE-LCHlch(30.52, 72.57, 306.39°)
OKLaboklab(41.99% 0.0547 -0.1678)
OKLCHoklch(41.99% 0.177 288.1)
XYZxyz(10.9884, 6.4497, 36.2559)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E30A5 #87A530
analogous
#304CA5 #4E30A5 #8930A5
triadic
#4E30A5 #A54E30 #30A54E
tetradic
#4E30A5 #A5304C #87A530 #30A589
square
#4E30A5 #A5304C #87A530 #30A589
split-complementary
#4E30A5 #A58930 #4CA530
monochromatic
#211446 #382276 #4E30A5 #6A48CA #9078D8

Accessibility & contrast

On white

9.17
#4E30A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#4E30A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E30A5
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E30A5#FFFFFF#000000##FFFFFF
##4E30A51.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#2D4E67
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4e30a5;
/* rgb */ color: rgb(78, 48, 165);
/* oklch */ color: oklch(42.0% 0.177 288.1);
Tailwind
colors: {
  custom: {
    50: '#886bc1',
    500: '#4e30a5',
    950: '#000000',
  },
}
SCSS
$custom: #4e30a5;
$custom-light: #886bc1;
$custom-dark: #000000;
JSON
{
  "hex": "#4e30a5",
  "rgb": {
    "r": 78,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 255.385,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.41989,
    "c": 0.17651,
    "h": 288.1
  },
  "luminance": 0.0645
}

Semantic roles & 50–950 ramp

primary
#4E30A5
secondary
#ACC071
accent
#DE4AB8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4E30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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