#3A104A#3A104A

#3A104A is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.4% C 0.106 H 315.0°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#3A104A
RGBrgb(58, 16, 74)
HSLhsl(283, 64%, 18%)
HSVhsv(283, 78%, 29%)
CMYKcmyk(21.6%, 78.4%, 0%, 71%)
CIE-LABlab(14.20, 30.70, -26.70)
CIE-LCHlch(14.20, 40.69, 318.99°)
OKLaboklab(27.39% 0.0751 -0.0752)
OKLCHoklch(27.39% 0.106 315)
XYZxyz(3.1660, 1.7646, 6.6511)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A104A #204A10
analogous
#1D104A #3A104A #4A103D
triadic
#3A104A #4A3A10 #104A3A
tetradic
#3A104A #4A1D10 #204A10 #103D4A
square
#3A104A #4A1D10 #204A10 #103D4A
split-complementary
#3A104A #3D4A10 #104A1D
monochromatic
#140519 #140519 #3A104A #611B7C #8926AF

Accessibility & contrast

On white

15.52
#3A104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3A104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A104A
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A104A#FFFFFF#000000##FFFFFF
##3A104A1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224C
Deuteranopia (green-blind)
#0E2549
Tritanopia (blue-blind)
#391C2B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a104a;
/* rgb */ color: rgb(58, 16, 74);
/* oklch */ color: oklch(27.4% 0.106 315.0);
Tailwind
colors: {
  custom: {
    50: '#73537d',
    500: '#3a104a',
    950: '#000000',
  },
}
SCSS
$custom: #3a104a;
$custom-light: #73537d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a104a",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 283.448,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27388,
    "c": 0.10629,
    "h": 315
  },
  "luminance": 0.01765
}

Semantic roles & 50–950 ramp

primary
#3A104A
secondary
#498432
accent
#E7406E
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A104A

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

Preview Lab → · Contrast checker → · Palette generator →

#3A104A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva