#4A339A#4A339A

#4A339A is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.1% C 0.159 H 287.5°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#4A339A
RGBrgb(74, 51, 154)
HSLhsl(253, 50%, 40%)
HSVhsv(253, 67%, 60%)
CMYKcmyk(51.9%, 66.9%, 0%, 39.6%)
CIE-LABlab(29.80, 37.34, -52.93)
CIE-LCHlch(29.80, 64.78, 305.20°)
OKLaboklab(41.09% 0.0478 -0.1519)
OKLCHoklch(41.09% 0.159 287.5)
XYZxyz(9.8389, 6.1561, 31.2354)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A339A #839A33
analogous
#334F9A #4A339A #7D339A
triadic
#4A339A #9A4A33 #339A4A
tetradic
#4A339A #9A334F #839A33 #339A7D
square
#4A339A #9A334F #839A33 #339A7D
split-complementary
#4A339A #9A7D33 #4F9A33
monochromatic
#1E153E #34246C #4A339A #6348C2 #8A76D2

Accessibility & contrast

On white

9.41
#4A339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#4A339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A339A
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A339A#FFFFFF#000000##FFFFFF
##4A339A1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#2C4C62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4a339a;
/* rgb */ color: rgb(74, 51, 154);
/* oklch */ color: oklch(41.1% 0.159 287.5);
Tailwind
colors: {
  custom: {
    50: '#846cb9',
    500: '#4a339a',
    950: '#000000',
  },
}
SCSS
$custom: #4a339a;
$custom-light: #846cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#4a339a",
  "rgb": {
    "r": 74,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 253.398,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41089,
    "c": 0.15921,
    "h": 287.5
  },
  "luminance": 0.06157
}

Semantic roles & 50–950 ramp

primary
#4A339A
secondary
#A9BA6F
accent
#DA4EBB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #4A339A

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

Preview Lab → · Contrast checker → · Palette generator →

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