#3A1E4E#3A1E4E

#3A1E4E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 29.8% C 0.088 H 308.9°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#3A1E4E
RGBrgb(58, 30, 78)
HSLhsl(275, 44%, 21%)
HSVhsv(275, 62%, 31%)
CMYKcmyk(25.6%, 61.5%, 0%, 69.4%)
CIE-LABlab(17.36, 23.88, -24.38)
CIE-LCHlch(17.36, 34.13, 314.40°)
OKLaboklab(29.77% 0.0554 -0.0685)
OKLCHoklch(29.77% 0.088 308.9)
XYZxyz(3.5841, 2.3782, 7.4765)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E4E #324E1E
analogous
#221E4E #3A1E4E #4E1E4A
triadic
#3A1E4E #4E3A1E #1E4E3A
tetradic
#3A1E4E #4E221E #324E1E #1E4A4E
square
#3A1E4E #4E221E #324E1E #1E4A4E
split-complementary
#3A1E4E #4A4E1E #1E4E22
monochromatic
#100916 #190D22 #3A1E4E #5B2F7A #7C40A6

Accessibility & contrast

On white

14.23
#3A1E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3A1E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E4E
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E4E#FFFFFF#000000##FFFFFF
##3A1E4E1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2950
Deuteranopia (green-blind)
#182B4D
Tritanopia (blue-blind)
#372732
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a1e4e;
/* rgb */ color: rgb(58, 30, 78);
/* oklch */ color: oklch(29.8% 0.088 308.9);
Tailwind
colors: {
  custom: {
    50: '#725b80',
    500: '#3a1e4e',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e4e;
$custom-light: #725b80;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e4e",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 275,
    "s": 44.444,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29767,
    "c": 0.08809,
    "h": 308.9
  },
  "luminance": 0.02378
}

Semantic roles & 50–950 ramp

primary
#3A1E4E
secondary
#5F8345
accent
#D45489
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08040A
muted
#7B797C

Preview Lab

Preview with #3A1E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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