#3A104C#3A104C

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

Color values

HEX#3A104C
RGBrgb(58, 16, 76)
HSLhsl(282, 65%, 18%)
HSVhsv(282, 79%, 30%)
CMYKcmyk(23.7%, 78.9%, 0%, 70.2%)
CIE-LABlab(14.36, 31.19, -27.83)
CIE-LCHlch(14.36, 41.80, 318.26°)
OKLaboklab(27.55% 0.0749 -0.0785)
OKLCHoklch(27.55% 0.108 313.6)
XYZxyz(3.2345, 1.7920, 7.0116)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A104C #224C10
analogous
#1C104C #3A104C #4C1040
triadic
#3A104C #4C3A10 #104C3A
tetradic
#3A104C #4C1C10 #224C10 #10404C
square
#3A104C #4C1C10 #224C10 #10404C
split-complementary
#3A104C #404C10 #104C1C
monochromatic
#130519 #130519 #3A104C #611B7F #8725B1

Accessibility & contrast

On white

15.46
#3A104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A104C
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A104C#FFFFFF#000000##FFFFFF
##3A104C1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a104c;
/* rgb */ color: rgb(58, 16, 76);
/* oklch */ color: oklch(27.5% 0.108 313.6);
Tailwind
colors: {
  custom: {
    50: '#73537e',
    500: '#3a104c',
    950: '#000000',
  },
}
SCSS
$custom: #3a104c;
$custom-light: #73537e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a104c",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 282,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.27548,
    "c": 0.10848,
    "h": 313.6
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

primary
#3A104C
secondary
#4B8632
accent
#E84072
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A104C

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

Preview Lab → · Contrast checker → · Palette generator →

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