#3A1D93#3A1D93

#3A1D93 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.177 H 284.4°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#3A1D93
RGBrgb(58, 29, 147)
HSLhsl(255, 67%, 35%)
HSVhsv(255, 80%, 58%)
CMYKcmyk(60.5%, 80.3%, 0%, 42.4%)
CIE-LABlab(23.29, 44.64, -59.38)
CIE-LCHlch(23.29, 74.29, 306.93°)
OKLaboklab(35.88% 0.0439 -0.1711)
OKLCHoklch(35.88% 0.177 284.4)
XYZxyz(7.4491, 3.8844, 27.9553)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D93 #76931D
analogous
#1D3B93 #3A1D93 #751D93
triadic
#3A1D93 #933A1D #1D933A
tetradic
#3A1D93 #931D3B #76931D #1D9375
square
#3A1D93 #931D3B #76931D #1D9375
split-complementary
#3A1D93 #93751D #3B931D
monochromatic
#12092D #261360 #3A1D93 #4E27C6 #714EDC

Accessibility & contrast

On white

11.82
#3A1D93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3A1D93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1D93
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D93#FFFFFF#000000##FFFFFF
##3A1D931.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B96
Deuteranopia (green-blind)
#003491
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1d93;
/* rgb */ color: rgb(58, 29, 147);
/* oklch */ color: oklch(35.9% 0.177 284.4);
Tailwind
colors: {
  custom: {
    50: '#7c5eb4',
    500: '#3a1d93',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d93;
$custom-light: #7c5eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d93",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 147
  },
  "hsl": {
    "h": 254.746,
    "s": 67.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35879,
    "c": 0.17668,
    "h": 284.4
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#3A1D93
secondary
#A3BF4D
accent
#EA3EC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1D93

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

Preview Lab → · Contrast checker → · Palette generator →

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