#4E3A8F#4E3A8F

#4E3A8F is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.8% C 0.135 H 290.2°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#4E3A8F
RGBrgb(78, 58, 143)
HSLhsl(254, 42%, 39%)
HSVhsv(254, 59%, 56%)
CMYKcmyk(45.5%, 59.4%, 0%, 43.9%)
CIE-LABlab(30.95, 30.59, -44.33)
CIE-LCHlch(30.95, 53.86, 304.61°)
OKLaboklab(41.75% 0.0464 -0.1264)
OKLCHoklch(41.75% 0.135 290.2)
XYZxyz(9.6115, 6.6286, 26.7543)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E3A8F #7B8F3A
analogous
#3A508F #4E3A8F #793A8F
triadic
#4E3A8F #8F4E3A #3A8F4E
tetradic
#4E3A8F #8F3A50 #7B8F3A #3A8F79
square
#4E3A8F #8F3A50 #7B8F3A #3A8F79
split-complementary
#4E3A8F #8F793A #508F3A
monochromatic
#1F1738 #362863 #4E3A8F #674FB7 #8D7AC9

Accessibility & contrast

On white

9.03
#4E3A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E3A8F
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E3A8F#FFFFFF#000000##FFFFFF
##4E3A8F1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#06478D
Tritanopia (blue-blind)
#3B4D5E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #4e3a8f;
/* rgb */ color: rgb(78, 58, 143);
/* oklch */ color: oklch(41.8% 0.135 290.2);
Tailwind
colors: {
  custom: {
    50: '#8471b0',
    500: '#4e3a8f',
    950: '#000000',
  },
}
SCSS
$custom: #4e3a8f;
$custom-light: #8471b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4e3a8f",
  "rgb": {
    "r": 78,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 254.118,
    "s": 42.289,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4175,
    "c": 0.13465,
    "h": 290.2
  },
  "luminance": 0.06629
}

Semantic roles & 50–950 ramp

primary
#4E3A8F
secondary
#A3B372
accent
#D256B5
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #4E3A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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