#3A1C7D#3A1C7D

#3A1C7D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.151 H 289.8°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#3A1C7D
RGBrgb(58, 28, 125)
HSLhsl(259, 63%, 30%)
HSVhsv(259, 78%, 49%)
CMYKcmyk(53.6%, 77.6%, 0%, 51%)
CIE-LABlab(20.87, 38.62, -49.57)
CIE-LCHlch(20.87, 62.84, 307.92°)
OKLaboklab(33.51% 0.0512 -0.1424)
OKLCHoklch(33.51% 0.151 289.8)
XYZxyz(5.8608, 3.2105, 19.7089)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1C7D #5F7D1C
analogous
#1C2E7D #3A1C7D #6B1C7D
triadic
#3A1C7D #7D3A1C #1C7D3A
tetradic
#3A1C7D #7D1C2E #5F7D1C #1C7D6B
square
#3A1C7D #7D1C2E #5F7D1C #1C7D6B
split-complementary
#3A1C7D #7D6B1C #2E7D1C
monochromatic
#0C0619 #23114B #3A1C7D #5127AF #6D3FD4

Accessibility & contrast

On white

12.79
#3A1C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3A1C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1C7D
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1C7D#FFFFFF#000000##FFFFFF
##3A1C7D1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#21374B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a1c7d;
/* rgb */ color: rgb(58, 28, 125);
/* oklch */ color: oklch(33.5% 0.151 289.8);
Tailwind
colors: {
  custom: {
    50: '#785ca4',
    500: '#3a1c7d',
    950: '#000000',
  },
}
SCSS
$custom: #3a1c7d;
$custom-light: #785ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1c7d",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 258.557,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.33512,
    "c": 0.15136,
    "h": 289.8
  },
  "luminance": 0.03211
}

Semantic roles & 50–950 ramp

primary
#3A1C7D
secondary
#8FB144
accent
#E641B3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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