#3A1C99#3A1C99

#3A1C99 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.185 H 283.3°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#3A1C99
RGBrgb(58, 28, 153)
HSLhsl(254, 69%, 35%)
HSVhsv(254, 82%, 60%)
CMYKcmyk(62.1%, 81.7%, 0%, 40%)
CIE-LABlab(23.77, 46.87, -62.28)
CIE-LCHlch(23.77, 77.95, 306.96°)
OKLaboklab(36.41% 0.0425 -0.1796)
OKLCHoklch(36.41% 0.185 283.3)
XYZxyz(7.9082, 4.0294, 30.4918)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1C99 #7B991C
analogous
#1C3C99 #3A1C99 #781C99
triadic
#3A1C99 #993A1C #1C993A
tetradic
#3A1C99 #991C3C #7B991C #1C9978
square
#3A1C99 #991C3C #7B991C #1C9978
split-complementary
#3A1C99 #99781C #3C991C
monochromatic
#130932 #261365 #3A1C99 #4E25CD #7350DF

Accessibility & contrast

On white

11.63
#3A1C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3A1C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1C99
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1C99#FFFFFF#000000##FFFFFF
##3A1C991.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1c99;
/* rgb */ color: rgb(58, 28, 153);
/* oklch */ color: oklch(36.4% 0.185 283.3);
Tailwind
colors: {
  custom: {
    50: '#7d5db8',
    500: '#3a1c99',
    950: '#000000',
  },
}
SCSS
$custom: #3a1c99;
$custom-light: #7d5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1c99",
  "rgb": {
    "r": 58,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 254.4,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36406,
    "c": 0.18457,
    "h": 283.3
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#3A1C99
secondary
#A6C24F
accent
#EC3CC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3A1C99

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

Preview Lab → · Contrast checker → · Palette generator →

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