#3A1D9F#3A1D9F

#3A1D9F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.191 H 282.1°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#3A1D9F
RGBrgb(58, 29, 159)
HSLhsl(253, 69%, 37%)
HSVhsv(253, 82%, 62%)
CMYKcmyk(63.5%, 81.8%, 0%, 37.6%)
CIE-LABlab(24.58, 48.16, -64.62)
CIE-LCHlch(24.58, 80.59, 306.70°)
OKLaboklab(37.16% 0.04 -0.1864)
OKLCHoklch(37.16% 0.191 282.1)
XYZxyz(8.4403, 4.2809, 33.1757)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D9F #829F1D
analogous
#1D419F #3A1D9F #7B1D9F
triadic
#3A1D9F #9F3A1D #1D9F3A
tetradic
#3A1D9F #9F1D41 #829F1D #1D9F7B
square
#3A1D9F #9F1D41 #829F1D #1D9F7B
split-complementary
#3A1D9F #9F7B1D #419F1D
monochromatic
#140A37 #27146B #3A1D9F #4D26D3 #7556E0

Accessibility & contrast

On white

11.31
#3A1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D9F
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D9F#FFFFFF#000000##FFFFFF
##3A1D9F1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1d9f;
/* rgb */ color: rgb(58, 29, 159);
/* oklch */ color: oklch(37.2% 0.191 282.1);
Tailwind
colors: {
  custom: {
    50: '#7e5ebd',
    500: '#3a1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d9f;
$custom-light: #7e5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d9f",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 253.385,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37161,
    "c": 0.19066,
    "h": 282.1
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#3A1D9F
secondary
#ABC454
accent
#EC3CC5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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