#3A1D9C#3A1D9C

#3A1D9C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.187 H 282.6°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3A1D9C
RGBrgb(58, 29, 156)
HSLhsl(254, 69%, 36%)
HSVhsv(254, 81%, 61%)
CMYKcmyk(62.8%, 81.4%, 0%, 38.8%)
CIE-LABlab(24.25, 47.29, -63.33)
CIE-LCHlch(24.25, 79.03, 306.75°)
OKLaboklab(36.84% 0.041 -0.1826)
OKLCHoklch(36.84% 0.187 282.6)
XYZxyz(8.1832, 4.1780, 31.8213)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D9C #7F9C1D
analogous
#1D409C #3A1D9C #7A1D9C
triadic
#3A1D9C #9C3A1D #1D9C3A
tetradic
#3A1D9C #9C1D40 #7F9C1D #1D9C7A
square
#3A1D9C #9C1D40 #7F9C1D #1D9C7A
split-complementary
#3A1D9C #9C7A1D #409C1D
monochromatic
#140A35 #271368 #3A1D9C #4D27D0 #7454DF

Accessibility & contrast

On white

11.44
#3A1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3A1D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D9C
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D9C#FFFFFF#000000##FFFFFF
##3A1D9C1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a1d9c;
/* rgb */ color: rgb(58, 29, 156);
/* oklch */ color: oklch(36.8% 0.187 282.6);
Tailwind
colors: {
  custom: {
    50: '#7e5eba',
    500: '#3a1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d9c;
$custom-light: #7e5eba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d9c",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 253.701,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36837,
    "c": 0.18718,
    "h": 282.6
  },
  "luminance": 0.04179
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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