#3A1D94#3A1D94

#3A1D94 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.178 H 284.2°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#3A1D94
RGBrgb(58, 29, 148)
HSLhsl(255, 67%, 35%)
HSVhsv(255, 80%, 58%)
CMYKcmyk(60.8%, 80.4%, 0%, 42%)
CIE-LABlab(23.39, 44.93, -59.83)
CIE-LCHlch(23.39, 74.82, 306.91°)
OKLaboklab(35.99% 0.0435 -0.1724)
OKLCHoklch(35.99% 0.178 284.2)
XYZxyz(7.5279, 3.9159, 28.3704)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1D94 #77941D
analogous
#1D3B94 #3A1D94 #761D94
triadic
#3A1D94 #943A1D #1D943A
tetradic
#3A1D94 #941D3B #77941D #1D9476
square
#3A1D94 #941D3B #77941D #1D9476
split-complementary
#3A1D94 #94761D #3B941D
monochromatic
#12092E #261361 #3A1D94 #4E27C7 #714FDC

Accessibility & contrast

On white

11.78
#3A1D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1D94
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1D94#FFFFFF#000000##FFFFFF
##3A1D941.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a1d94;
/* rgb */ color: rgb(58, 29, 148);
/* oklch */ color: oklch(36.0% 0.178 284.2);
Tailwind
colors: {
  custom: {
    50: '#7c5eb5',
    500: '#3a1d94',
    950: '#000000',
  },
}
SCSS
$custom: #3a1d94;
$custom-light: #7c5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1d94",
  "rgb": {
    "r": 58,
    "g": 29,
    "b": 148
  },
  "hsl": {
    "h": 254.622,
    "s": 67.232,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35985,
    "c": 0.17785,
    "h": 284.2
  },
  "luminance": 0.03916
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A1D94

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

Preview Lab → · Contrast checker → · Palette generator →

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