#4A339C#4A339C

#4A339C is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.162 H 287.1°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#4A339C
RGBrgb(74, 51, 156)
HSLhsl(253, 51%, 41%)
HSVhsv(253, 67%, 61%)
CMYKcmyk(52.6%, 67.3%, 0%, 38.8%)
CIE-LABlab(29.97, 37.95, -53.88)
CIE-LCHlch(29.97, 65.91, 305.16°)
OKLaboklab(41.26% 0.0476 -0.1546)
OKLCHoklch(41.26% 0.162 287.1)
XYZxyz(10.0068, 6.2233, 32.1200)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A339C #859C33
analogous
#33509C #4A339C #7E339C
triadic
#4A339C #9C4A33 #339C4A
tetradic
#4A339C #9C3350 #859C33 #339C7E
square
#4A339C #9C3350 #859C33 #339C7E
split-complementary
#4A339C #9C7E33 #509C33
monochromatic
#1E1540 #34246E #4A339C #6449C3 #8B77D3

Accessibility & contrast

On white

9.35
#4A339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4A339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A339C
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A339C#FFFFFF#000000##FFFFFF
##4A339C1.009.352.249.35
#FFFFFF9.351.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#2B4D63
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4a339c;
/* rgb */ color: rgb(74, 51, 156);
/* oklch */ color: oklch(41.3% 0.162 287.1);
Tailwind
colors: {
  custom: {
    50: '#846cba',
    500: '#4a339c',
    950: '#000000',
  },
}
SCSS
$custom: #4a339c;
$custom-light: #846cba;
$custom-dark: #000000;
JSON
{
  "hex": "#4a339c",
  "rgb": {
    "r": 74,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 253.143,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4126,
    "c": 0.16178,
    "h": 287.1
  },
  "luminance": 0.06224
}

Semantic roles & 50–950 ramp

primary
#4A339C
secondary
#AABB70
accent
#DA4EBB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A339C

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

Preview Lab → · Contrast checker → · Palette generator →

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