#3A1C4E#3A1C4E

#3A1C4E is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.4% C 0.092 H 309.6°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#3A1C4E
RGBrgb(58, 28, 78)
HSLhsl(276, 47%, 21%)
HSVhsv(276, 64%, 31%)
CMYKcmyk(25.6%, 64.1%, 0%, 69.4%)
CIE-LABlab(16.89, 25.12, -25.12)
CIE-LCHlch(16.89, 35.53, 314.99°)
OKLaboklab(29.43% 0.0584 -0.0707)
OKLCHoklch(29.43% 0.092 309.6)
XYZxyz(3.5351, 2.2802, 7.4601)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1C4E #304E1C
analogous
#211C4E #3A1C4E #4E1C49
triadic
#3A1C4E #4E3A1C #1C4E3A
tetradic
#3A1C4E #4E211C #304E1C #1C494E
square
#3A1C4E #4E211C #304E1C #1C494E
split-complementary
#3A1C4E #494E1C #1C4E21
monochromatic
#110817 #190C21 #3A1C4E #5B2C7B #7D3CA8

Accessibility & contrast

On white

14.42
#3A1C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3A1C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1C4E
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1C4E#FFFFFF#000000##FFFFFF
##3A1C4E1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2850
Deuteranopia (green-blind)
#162A4D
Tritanopia (blue-blind)
#372532
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a1c4e;
/* rgb */ color: rgb(58, 28, 78);
/* oklch */ color: oklch(29.4% 0.092 309.6);
Tailwind
colors: {
  custom: {
    50: '#725a80',
    500: '#3a1c4e',
    950: '#000000',
  },
}
SCSS
$custom: #3a1c4e;
$custom-light: #725a80;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1c4e",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 276,
    "s": 47.17,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29426,
    "c": 0.09169,
    "h": 309.6
  },
  "luminance": 0.0228
}

Semantic roles & 50–950 ramp

primary
#3A1C4E
secondary
#5C8442
accent
#D75187
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08040A
muted
#7B797C

Preview Lab

Preview with #3A1C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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