#4A34A2#4A34A2

#4A34A2 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.168 H 285.8°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#4A34A2
RGBrgb(74, 52, 162)
HSLhsl(252, 51%, 42%)
HSVhsv(252, 68%, 64%)
CMYKcmyk(54.3%, 67.9%, 0%, 36.5%)
CIE-LABlab(30.69, 39.22, -56.35)
CIE-LCHlch(30.69, 68.65, 304.84°)
OKLaboklab(41.94% 0.0458 -0.1619)
OKLCHoklch(41.94% 0.168 285.8)
XYZxyz(10.5717, 6.5199, 34.8768)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A34A2 #8CA234
analogous
#3455A2 #4A34A2 #8134A2
triadic
#4A34A2 #A24A34 #34A24A
tetradic
#4A34A2 #A23455 #8CA234 #34A281
square
#4A34A2 #A23455 #8CA234 #34A281
split-complementary
#4A34A2 #A28134 #55A234
monochromatic
#201645 #352574 #4A34A2 #654DC6 #8D7CD5

Accessibility & contrast

On white

9.11
#4A34A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#4A34A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A34A2
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A34A2#FFFFFF#000000##FFFFFF
##4A34A21.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#255066
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #4a34a2;
/* rgb */ color: rgb(74, 52, 162);
/* oklch */ color: oklch(41.9% 0.168 285.8);
Tailwind
colors: {
  custom: {
    50: '#856dbe',
    500: '#4a34a2',
    950: '#000000',
  },
}
SCSS
$custom: #4a34a2;
$custom-light: #856dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#4a34a2",
  "rgb": {
    "r": 74,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 252,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41935,
    "c": 0.16821,
    "h": 285.8
  },
  "luminance": 0.0652
}

Semantic roles & 50–950 ramp

primary
#4A34A2
secondary
#AFBE74
accent
#DB4DBE
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4A34A2

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

Preview Lab → · Contrast checker → · Palette generator →

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