#3A104D#3A104D

#3A104D is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.6% C 0.110 H 313.0°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#3A104D
RGBrgb(58, 16, 77)
HSLhsl(281, 66%, 18%)
HSVhsv(281, 79%, 30%)
CMYKcmyk(24.7%, 79.2%, 0%, 69.8%)
CIE-LABlab(14.43, 31.43, -28.39)
CIE-LCHlch(14.43, 42.35, 317.91°)
OKLaboklab(27.63% 0.0747 -0.0802)
OKLCHoklch(27.63% 0.11 313)
XYZxyz(3.2695, 1.8060, 7.1961)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A104D #234D10
analogous
#1B104D #3A104D #4D1041
triadic
#3A104D #4D3A10 #104D3A
tetradic
#3A104D #4D1B10 #234D10 #10414D
square
#3A104D #4D1B10 #234D10 #10414D
split-complementary
#3A104D #414D10 #104D1B
monochromatic
#130519 #14051A #3A104D #601B80 #8625B2

Accessibility & contrast

On white

15.43
#3A104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#3A104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A104D
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A104D#FFFFFF#000000##FFFFFF
##3A104D1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#0A254C
Tritanopia (blue-blind)
#381D2D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a104d;
/* rgb */ color: rgb(58, 16, 77);
/* oklch */ color: oklch(27.6% 0.110 313.0);
Tailwind
colors: {
  custom: {
    50: '#73537f',
    500: '#3a104d',
    950: '#000000',
  },
}
SCSS
$custom: #3a104d;
$custom-light: #73537f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a104d",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 281.311,
    "s": 65.591,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27629,
    "c": 0.10958,
    "h": 313
  },
  "luminance": 0.01806
}

Semantic roles & 50–950 ramp

primary
#3A104D
secondary
#4C8732
accent
#E93F74
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A104D

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

Preview Lab → · Contrast checker → · Palette generator →

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