#4A34AA#4A34AA

#4A34AA is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.6% C 0.178 H 284.4°. Best body text is #FFFFFF at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#4A34AA
RGBrgb(74, 52, 170)
HSLhsl(251, 53%, 44%)
HSVhsv(251, 69%, 67%)
CMYKcmyk(56.5%, 69.4%, 0%, 33.3%)
CIE-LABlab(31.38, 41.68, -60.04)
CIE-LCHlch(31.38, 73.09, 304.77°)
OKLaboklab(42.65% 0.0445 -0.1727)
OKLCHoklch(42.65% 0.178 284.4)
XYZxyz(11.3055, 6.8134, 38.7418)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A34AA #94AA34
analogous
#3459AA #4A34AA #8534AA
triadic
#4A34AA #AA4A34 #34AA4A
tetradic
#4A34AA #AA3459 #94AA34 #34AA85
square
#4A34AA #AA3459 #94AA34 #34AA85
split-complementary
#4A34AA #AA8534 #59AA34
monochromatic
#21174C #36267B #4A34AA #6851CA #9180D8

Accessibility & contrast

On white

8.89
#4A34AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#4A34AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A34AA
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A34AA#FFFFFF#000000##FFFFFF
##4A34AA1.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#1C536B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #4a34aa;
/* rgb */ color: rgb(74, 52, 170);
/* oklch */ color: oklch(42.6% 0.178 284.4);
Tailwind
colors: {
  custom: {
    50: '#876dc4',
    500: '#4a34aa',
    950: '#000000',
  },
}
SCSS
$custom: #4a34aa;
$custom-light: #876dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a34aa",
  "rgb": {
    "r": 74,
    "g": 52,
    "b": 170
  },
  "hsl": {
    "h": 251.186,
    "s": 53.153,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42645,
    "c": 0.17834,
    "h": 284.4
  },
  "luminance": 0.06814
}

Semantic roles & 50–950 ramp

primary
#4A34AA
secondary
#B4C178
accent
#DD4BC1
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4A34AA

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

Preview Lab → · Contrast checker → · Palette generator →

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