#3A1047#3A1047

#3A1047 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.2% C 0.103 H 317.1°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#3A1047
RGBrgb(58, 16, 71)
HSLhsl(286, 63%, 17%)
HSVhsv(286, 77%, 28%)
CMYKcmyk(18.3%, 77.5%, 0%, 72.2%)
CIE-LABlab(13.97, 29.99, -24.98)
CIE-LCHlch(13.97, 39.03, 320.21°)
OKLaboklab(27.15% 0.0754 -0.0702)
OKLCHoklch(27.15% 0.103 317.1)
XYZxyz(3.0674, 1.7252, 6.1314)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1047 #1D4710
analogous
#1F1047 #3A1047 #471039
triadic
#3A1047 #473A10 #10473A
tetradic
#3A1047 #471F10 #1D4710 #103947
square
#3A1047 #471F10 #1D4710 #103947
split-complementary
#3A1047 #394710 #10471F
monochromatic
#140619 #140619 #3A1047 #631B79 #8C27AB

Accessibility & contrast

On white

15.61
#3A1047 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#3A1047 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1047
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1047#FFFFFF#000000##FFFFFF
##3A10471.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002149
Deuteranopia (green-blind)
#112546
Tritanopia (blue-blind)
#391B2A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #3a1047;
/* rgb */ color: rgb(58, 16, 71);
/* oklch */ color: oklch(27.2% 0.103 317.1);
Tailwind
colors: {
  custom: {
    50: '#72527a',
    500: '#3a1047',
    950: '#000000',
  },
}
SCSS
$custom: #3a1047;
$custom-light: #72527a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1047",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 71
  },
  "hsl": {
    "h": 285.818,
    "s": 63.218,
    "l": 17.059
  },
  "oklch": {
    "l": 0.27153,
    "c": 0.10301,
    "h": 317.1
  },
  "luminance": 0.01725
}

Semantic roles & 50–950 ramp

primary
#3A1047
secondary
#458132
accent
#E64268
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #3A1047

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

Preview Lab → · Contrast checker → · Palette generator →

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