#3A1D96#3A1D96

#3A1D96 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.180 H 283.8°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#3A1D96
RGBrgb(58, 29, 150)
HSLhsl(254, 68%, 35%)
HSVhsv(254, 81%, 59%)
CMYKcmyk(61.3%, 80.7%, 0%, 41.2%)
CIE-LABlab(23.60, 45.52, -60.71)
CIE-LCHlch(23.60, 75.88, 306.87°)
OKLaboklab(36.2% 0.0429 -0.175)
OKLCHoklch(36.2% 0.18 283.8)
XYZxyz(7.6876, 3.9798, 29.2113)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D96 #79961D
analogous
#1D3D96 #3A1D96 #761D96
triadic
#3A1D96 #963A1D #1D963A
tetradic
#3A1D96 #961D3D #79961D #1D9676
square
#3A1D96 #961D3D #79961D #1D9676
split-complementary
#3A1D96 #96761D #3D961D
monochromatic
#12092F #261363 #3A1D96 #4E27C9 #7250DD

Accessibility & contrast

On white

11.69
#3A1D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3A1D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D96
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D96#FFFFFF#000000##FFFFFF
##3A1D961.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a1d96;
/* rgb */ color: rgb(58, 29, 150);
/* oklch */ color: oklch(36.2% 0.180 283.8);
Tailwind
colors: {
  custom: {
    50: '#7d5eb6',
    500: '#3a1d96',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d96;
$custom-light: #7d5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d96",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 150
  },
  "hsl": {
    "h": 254.38,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36196,
    "c": 0.18019,
    "h": 283.8
  },
  "luminance": 0.0398
}

Semantic roles & 50–950 ramp

primary
#3A1D96
secondary
#A5C04F
accent
#EA3DC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A1D96

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

Preview Lab → · Contrast checker → · Palette generator →

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