#3A104F#3A104F

#3A104F is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.8% C 0.112 H 311.7°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#3A104F
RGBrgb(58, 16, 79)
HSLhsl(280, 66%, 19%)
HSVhsv(280, 80%, 31%)
CMYKcmyk(26.6%, 79.7%, 0%, 69%)
CIE-LABlab(14.59, 31.92, -29.50)
CIE-LCHlch(14.59, 43.46, 317.25°)
OKLaboklab(27.79% 0.0744 -0.0834)
OKLCHoklch(27.79% 0.112 311.7)
XYZxyz(3.3412, 1.8347, 7.5737)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A104F #254F10
analogous
#1A104F #3A104F #4F1044
triadic
#3A104F #4F3A10 #104F3A
tetradic
#3A104F #4F1A10 #254F10 #10444F
square
#3A104F #4F1A10 #254F10 #10444F
split-complementary
#3A104F #444F10 #104F1A
monochromatic
#130519 #15061C #3A104F #5F1A82 #8525B5

Accessibility & contrast

On white

15.36
#3A104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#3A104F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A104F
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A104F#FFFFFF#000000##FFFFFF
##3A104F1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002351
Deuteranopia (green-blind)
#07264E
Tritanopia (blue-blind)
#371E2E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a104f;
/* rgb */ color: rgb(58, 16, 79);
/* oklch */ color: oklch(27.8% 0.112 311.7);
Tailwind
colors: {
  custom: {
    50: '#735381',
    500: '#3a104f',
    950: '#000000',
  },
}
SCSS
$custom: #3a104f;
$custom-light: #735381;
$custom-dark: #000000;
JSON
{
  "hex": "#3a104f",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 280,
    "s": 66.316,
    "l": 18.627
  },
  "oklch": {
    "l": 0.27794,
    "c": 0.11179,
    "h": 311.7
  },
  "luminance": 0.01835
}

Semantic roles & 50–950 ramp

primary
#3A104F
secondary
#4F8932
accent
#E93F77
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #3A104F

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

Preview Lab → · Contrast checker → · Palette generator →

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