#3A1C8E#3A1C8E

#3A1C8E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.172 H 285.6°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#3A1C8E
RGBrgb(58, 28, 142)
HSLhsl(256, 67%, 33%)
HSVhsv(256, 80%, 56%)
CMYKcmyk(59.2%, 80.3%, 0%, 44.3%)
CIE-LABlab(22.59, 43.64, -57.42)
CIE-LCHlch(22.59, 72.13, 307.24°)
OKLaboklab(35.24% 0.0461 -0.1654)
OKLCHoklch(35.24% 0.172 285.6)
XYZxyz(7.0412, 3.6826, 25.9257)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1C8E #708E1C
analogous
#1C378E #3A1C8E #731C8E
triadic
#3A1C8E #8E3A1C #1C8E3A
tetradic
#3A1C8E #8E1C37 #708E1C #1C8E73
square
#3A1C8E #8E1C37 #708E1C #1C8E73
split-complementary
#3A1C8E #8E731C #378E1C
monochromatic
#100828 #25125B #3A1C8E #4F26C1 #7049DB

Accessibility & contrast

On white

12.09
#3A1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3A1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1C8E
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1C8E#FFFFFF#000000##FFFFFF
##3A1C8E1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#0D3E55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a1c8e;
/* rgb */ color: rgb(58, 28, 142);
/* oklch */ color: oklch(35.2% 0.172 285.6);
Tailwind
colors: {
  custom: {
    50: '#7b5db0',
    500: '#3a1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #3a1c8e;
$custom-light: #7b5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1c8e",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 255.789,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3524,
    "c": 0.17171,
    "h": 285.6
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#3A1C8E
secondary
#9EBD49
accent
#EA3EBD
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #3A1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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