#3A104B#3A104B

#3A104B is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.107 H 314.3°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#3A104B
RGBrgb(58, 16, 75)
HSLhsl(283, 65%, 18%)
HSVhsv(283, 79%, 29%)
CMYKcmyk(22.7%, 78.7%, 0%, 70.6%)
CIE-LABlab(14.28, 30.95, -27.26)
CIE-LCHlch(14.28, 41.24, 318.62°)
OKLaboklab(27.47% 0.075 -0.0769)
OKLCHoklch(27.47% 0.107 314.3)
XYZxyz(3.2000, 1.7782, 6.8299)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A104B #214B10
analogous
#1C104B #3A104B #4B103E
triadic
#3A104B #4B3A10 #104B3A
tetradic
#3A104B #4B1C10 #214B10 #103E4B
square
#3A104B #4B1C10 #214B10 #103E4B
split-complementary
#3A104B #3E4B10 #104B1C
monochromatic
#140519 #140519 #3A104B #611B7D #8826B0

Accessibility & contrast

On white

15.49
#3A104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A104B
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A104B#FFFFFF#000000##FFFFFF
##3A104B1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224D
Deuteranopia (green-blind)
#0D254A
Tritanopia (blue-blind)
#381C2C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a104b;
/* rgb */ color: rgb(58, 16, 75);
/* oklch */ color: oklch(27.5% 0.107 314.3);
Tailwind
colors: {
  custom: {
    50: '#73537e',
    500: '#3a104b',
    950: '#000000',
  },
}
SCSS
$custom: #3a104b;
$custom-light: #73537e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a104b",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 282.712,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.27467,
    "c": 0.10738,
    "h": 314.3
  },
  "luminance": 0.01778
}

Semantic roles & 50–950 ramp

primary
#3A104B
secondary
#4A8532
accent
#E84070
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A104B

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

Preview Lab → · Contrast checker → · Palette generator →

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