#3A1D9B#3A1D9B

#3A1D9B is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.186 H 282.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#3A1D9B
RGBrgb(58, 29, 155)
HSLhsl(254, 68%, 36%)
HSVhsv(254, 81%, 61%)
CMYKcmyk(62.6%, 81.3%, 0%, 39.2%)
CIE-LABlab(24.14, 46.99, -62.89)
CIE-LCHlch(24.14, 78.51, 306.77°)
OKLaboklab(36.73% 0.0413 -0.1814)
OKLCHoklch(36.73% 0.186 282.8)
XYZxyz(8.0988, 4.1443, 31.3771)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D9B #7E9B1D
analogous
#1D3F9B #3A1D9B #791D9B
triadic
#3A1D9B #9B3A1D #1D9B3A
tetradic
#3A1D9B #9B1D3F #7E9B1D #1D9B79
square
#3A1D9B #9B1D3F #7E9B1D #1D9B79
split-complementary
#3A1D9B #9B791D #3F9B1D
monochromatic
#130A34 #271367 #3A1D9B #4D27CF #7453DF

Accessibility & contrast

On white

11.48
#3A1D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3A1D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D9B
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D9B#FFFFFF#000000##FFFFFF
##3A1D9B1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a1d9b;
/* rgb */ color: rgb(58, 29, 155);
/* oklch */ color: oklch(36.7% 0.186 282.8);
Tailwind
colors: {
  custom: {
    50: '#7d5eba',
    500: '#3a1d9b',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d9b;
$custom-light: #7d5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d9b",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 155
  },
  "hsl": {
    "h": 253.81,
    "s": 68.478,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3673,
    "c": 0.18602,
    "h": 282.8
  },
  "luminance": 0.04145
}

Semantic roles & 50–950 ramp

primary
#3A1D9B
secondary
#A8C252
accent
#EB3CC3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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