#3A1D99#3A1D99

#3A1D99 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.184 H 283.2°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#3A1D99
RGBrgb(58, 29, 153)
HSLhsl(254, 68%, 36%)
HSVhsv(254, 81%, 60%)
CMYKcmyk(62.1%, 81%, 0%, 40%)
CIE-LABlab(23.93, 46.41, -62.02)
CIE-LCHlch(23.93, 77.46, 306.80°)
OKLaboklab(36.52% 0.042 -0.1788)
OKLCHoklch(36.52% 0.184 283.2)
XYZxyz(7.9323, 4.0776, 30.4999)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D99 #7C991D
analogous
#1D3E99 #3A1D99 #781D99
triadic
#3A1D99 #993A1D #1D993A
tetradic
#3A1D99 #991D3E #7C991D #1D9978
square
#3A1D99 #991D3E #7C991D #1D9978
split-complementary
#3A1D99 #99781D #3E991D
monochromatic
#130932 #261366 #3A1D99 #4E27CC #7352DE

Accessibility & contrast

On white

11.57
#3A1D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3A1D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D99
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D99#FFFFFF#000000##FFFFFF
##3A1D991.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a1d99;
/* rgb */ color: rgb(58, 29, 153);
/* oklch */ color: oklch(36.5% 0.184 283.2);
Tailwind
colors: {
  custom: {
    50: '#7d5eb8',
    500: '#3a1d99',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d99;
$custom-light: #7d5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d99",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 254.032,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36516,
    "c": 0.1837,
    "h": 283.2
  },
  "luminance": 0.04078
}

Semantic roles & 50–950 ramp

primary
#3A1D99
secondary
#A7C151
accent
#EB3DC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A1D99

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

Preview Lab → · Contrast checker → · Palette generator →

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