#3A1D9E#3A1D9E

#3A1D9E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.190 H 282.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#3A1D9E
RGBrgb(58, 29, 158)
HSLhsl(253, 69%, 37%)
HSVhsv(253, 82%, 62%)
CMYKcmyk(63.3%, 81.6%, 0%, 38%)
CIE-LABlab(24.47, 47.87, -64.19)
CIE-LCHlch(24.47, 80.07, 306.71°)
OKLaboklab(37.05% 0.0403 -0.1852)
OKLCHoklch(37.05% 0.19 282.3)
XYZxyz(8.3539, 4.2463, 32.7205)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D9E #819E1D
analogous
#1D419E #3A1D9E #7B1D9E
triadic
#3A1D9E #9E3A1D #1D9E3A
tetradic
#3A1D9E #9E1D41 #819E1D #1D9E7B
square
#3A1D9E #9E1D41 #819E1D #1D9E7B
split-complementary
#3A1D9E #9E7B1D #419E1D
monochromatic
#140A37 #27146A #3A1D9E #4D26D2 #7556E0

Accessibility & contrast

On white

11.36
#3A1D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3A1D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D9E
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D9E#FFFFFF#000000##FFFFFF
##3A1D9E1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1d9e;
/* rgb */ color: rgb(58, 29, 158);
/* oklch */ color: oklch(37.1% 0.190 282.3);
Tailwind
colors: {
  custom: {
    50: '#7e5ebc',
    500: '#3a1d9e',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d9e;
$custom-light: #7e5ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d9e",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 158
  },
  "hsl": {
    "h": 253.488,
    "s": 68.984,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37053,
    "c": 0.1895,
    "h": 282.3
  },
  "luminance": 0.04247
}

Semantic roles & 50–950 ramp

primary
#3A1D9E
secondary
#AAC354
accent
#EC3CC4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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