#4A2A84#4A2A84

#4A2A84 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 37.9% C 0.143 H 295.0°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#4A2A84
RGBrgb(74, 42, 132)
HSLhsl(261, 52%, 34%)
HSVhsv(261, 68%, 52%)
CMYKcmyk(43.9%, 68.2%, 0%, 48.2%)
CIE-LABlab(26.09, 36.00, -45.38)
CIE-LCHlch(26.09, 57.93, 308.42°)
OKLaboklab(37.85% 0.0604 -0.1296)
OKLCHoklch(37.85% 0.143 295)
XYZxyz(7.8158, 4.7775, 22.3357)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A2A84 #64842A
analogous
#2A3784 #4A2A84 #772A84
triadic
#4A2A84 #844A2A #2A844A
tetradic
#4A2A84 #842A37 #64842A #2A8477
square
#4A2A84 #842A37 #64842A #2A8477
split-complementary
#4A2A84 #84772A #37842A
monochromatic
#160C27 #301B56 #4A2A84 #6439B2 #845DCB

Accessibility & contrast

On white

10.74
#4A2A84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4A2A84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A2A84
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A2A84#FFFFFF#000000##FFFFFF
##4A2A841.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F87
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#3A3F53
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4a2a84;
/* rgb */ color: rgb(74, 42, 132);
/* oklch */ color: oklch(37.9% 0.143 295.0);
Tailwind
colors: {
  custom: {
    50: '#8266a8',
    500: '#4a2a84',
    950: '#000000',
  },
}
SCSS
$custom: #4a2a84;
$custom-light: #8266a8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a2a84",
  "rgb": {
    "r": 74,
    "g": 42,
    "b": 132
  },
  "hsl": {
    "h": 261.333,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37851,
    "c": 0.14303,
    "h": 295
  },
  "luminance": 0.04778
}

Semantic roles & 50–950 ramp

primary
#4A2A84
secondary
#92B159
accent
#DB4DA8
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4A2A84

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

Preview Lab → · Contrast checker → · Palette generator →

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