#3A1E96#3A1E96

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

Color values

HEX#3A1E96
RGBrgb(58, 30, 150)
HSLhsl(254, 67%, 35%)
HSVhsv(254, 80%, 59%)
CMYKcmyk(61.3%, 80%, 0%, 41.2%)
CIE-LABlab(23.77, 45.05, -60.44)
CIE-LCHlch(23.77, 75.38, 306.70°)
OKLaboklab(36.31% 0.0423 -0.1742)
OKLCHoklch(36.31% 0.179 283.6)
XYZxyz(7.7125, 4.0296, 29.2196)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E96 #7A961E
analogous
#1E3E96 #3A1E96 #761E96
triadic
#3A1E96 #963A1E #1E963A
tetradic
#3A1E96 #961E3E #7A961E #1E9676
square
#3A1E96 #961E3E #7A961E #1E9676
split-complementary
#3A1E96 #96761E #3E961E
monochromatic
#130A30 #261463 #3A1E96 #4E28C9 #7252DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A1E96#FFFFFF#000000##FFFFFF
##3A1E961.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)
#003C99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a1e96;
/* rgb */ color: rgb(58, 30, 150);
/* oklch */ color: oklch(36.3% 0.179 283.6);
Tailwind
colors: {
  custom: {
    50: '#7c5eb6',
    500: '#3a1e96',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e96;
$custom-light: #7c5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e96",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 254,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36311,
    "c": 0.17929,
    "h": 283.6
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#3A1E96
secondary
#A6BF50
accent
#EA3EC2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A1E96

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

Preview Lab → · Contrast checker → · Palette generator →

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