#3A1071#3A1071

#3A1071 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.149 H 295.6°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#3A1071
RGBrgb(58, 16, 113)
HSLhsl(266, 75%, 25%)
HSVhsv(266, 86%, 44%)
CMYKcmyk(48.7%, 85.8%, 0%, 55.7%)
CIE-LABlab(17.75, 40.76, -46.99)
CIE-LCHlch(17.75, 62.21, 310.93°)
OKLaboklab(30.97% 0.0646 -0.1348)
OKLCHoklch(30.97% 0.149 295.6)
XYZxyz(4.9100, 2.4622, 15.8361)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1071 #477110
analogous
#101771 #3A1071 #6A1071
triadic
#3A1071 #713A10 #10713A
tetradic
#3A1071 #711017 #477110 #10716A
square
#3A1071 #711017 #477110 #10716A
split-complementary
#3A1071 #716A10 #177110
monochromatic
#0E041B #1E083B #3A1071 #5618A7 #711FDC

Accessibility & contrast

On white

14.07
#3A1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3A1071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1071
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1071#FFFFFF#000000##FFFFFF
##3A10711.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#2A2D42
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a1071;
/* rgb */ color: rgb(58, 16, 113);
/* oklch */ color: oklch(31.0% 0.149 295.6);
Tailwind
colors: {
  custom: {
    50: '#77559b',
    500: '#3a1071',
    950: '#000000',
  },
}
SCSS
$custom: #3a1071;
$custom-light: #77559b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1071",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 265.979,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.30972,
    "c": 0.14946,
    "h": 295.6
  },
  "luminance": 0.02462
}

Semantic roles & 50–950 ramp

primary
#3A1071
secondary
#76A934
accent
#F236A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1071

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

Preview Lab → · Contrast checker → · Palette generator →

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