#3A1171#3A1171

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

Color values

HEX#3A1171
RGBrgb(58, 17, 113)
HSLhsl(266, 74%, 25%)
HSVhsv(266, 85%, 44%)
CMYKcmyk(48.7%, 85%, 0%, 55.7%)
CIE-LABlab(17.89, 40.35, -46.77)
CIE-LCHlch(17.89, 61.77, 310.79°)
OKLaboklab(31.07% 0.0639 -0.1341)
OKLCHoklch(31.07% 0.149 295.5)
XYZxyz(4.9252, 2.4926, 15.8412)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1171 #487111
analogous
#111871 #3A1171 #6A1171
triadic
#3A1171 #713A11 #11713A
tetradic
#3A1171 #711118 #487111 #11716A
square
#3A1171 #711118 #487111 #11716A
split-complementary
#3A1171 #716A11 #187111
monochromatic
#0E041B #1F093C #3A1171 #5519A6 #7121DB

Accessibility & contrast

On white

14.01
#3A1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3A1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1171
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1171#FFFFFF#000000##FFFFFF
##3A11711.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1171;
/* rgb */ color: rgb(58, 17, 113);
/* oklch */ color: oklch(31.1% 0.149 295.5);
Tailwind
colors: {
  custom: {
    50: '#77559b',
    500: '#3a1171',
    950: '#000000',
  },
}
SCSS
$custom: #3a1171;
$custom-light: #77559b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1171",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 265.625,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31067,
    "c": 0.14855,
    "h": 295.5
  },
  "luminance": 0.02493
}

Semantic roles & 50–950 ramp

primary
#3A1171
secondary
#77A836
accent
#F137A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1171

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

Preview Lab → · Contrast checker → · Palette generator →

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