#3A104E#3A104E

#3A104E is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.111 H 312.3°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#3A104E
RGBrgb(58, 16, 78)
HSLhsl(281, 66%, 18%)
HSVhsv(281, 79%, 31%)
CMYKcmyk(25.6%, 79.5%, 0%, 69.4%)
CIE-LABlab(14.51, 31.67, -28.95)
CIE-LCHlch(14.51, 42.91, 317.57°)
OKLaboklab(27.71% 0.0746 -0.0818)
OKLCHoklch(27.71% 0.111 312.3)
XYZxyz(3.3051, 1.8203, 7.3835)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A104E #244E10
analogous
#1B104E #3A104E #4E1043
triadic
#3A104E #4E3A10 #104E3A
tetradic
#3A104E #4E1B10 #244E10 #10434E
square
#3A104E #4E1B10 #244E10 #10434E
split-complementary
#3A104E #434E10 #104E1B
monochromatic
#130519 #14061B #3A104E #601A81 #8625B4

Accessibility & contrast

On white

15.40
#3A104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A104E
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A104E#FFFFFF#000000##FFFFFF
##3A104E1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#09264D
Tritanopia (blue-blind)
#381E2E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a104e;
/* rgb */ color: rgb(58, 16, 78);
/* oklch */ color: oklch(27.7% 0.111 312.3);
Tailwind
colors: {
  custom: {
    50: '#735380',
    500: '#3a104e',
    950: '#000000',
  },
}
SCSS
$custom: #3a104e;
$custom-light: #735380;
$custom-dark: #000000;
JSON
{
  "hex": "#3a104e",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 280.645,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27711,
    "c": 0.11068,
    "h": 312.3
  },
  "luminance": 0.0182
}

Semantic roles & 50–950 ramp

primary
#3A104E
secondary
#4E8832
accent
#E93F76
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A104E

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

Preview Lab → · Contrast checker → · Palette generator →

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