#3A1E93#3A1E93

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

Color values

HEX#3A1E93
RGBrgb(58, 30, 147)
HSLhsl(254, 66%, 35%)
HSVhsv(254, 80%, 58%)
CMYKcmyk(60.5%, 79.6%, 0%, 42.4%)
CIE-LABlab(23.45, 44.16, -59.11)
CIE-LCHlch(23.45, 73.78, 306.76°)
OKLaboklab(36% 0.0432 -0.1703)
OKLCHoklch(36% 0.176 284.2)
XYZxyz(7.4740, 3.9342, 27.9636)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E93 #77931E
analogous
#1E3D93 #3A1E93 #751E93
triadic
#3A1E93 #933A1E #1E933A
tetradic
#3A1E93 #931E3D #77931E #1E9375
square
#3A1E93 #931E3D #77931E #1E9375
split-complementary
#3A1E93 #93751E #3D931E
monochromatic
#12092D #261460 #3A1E93 #4E28C6 #7150DB

Accessibility & contrast

On white

11.75
#3A1E93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3A1E93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E93
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E93#FFFFFF#000000##FFFFFF
##3A1E931.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1e93;
/* rgb */ color: rgb(58, 30, 147);
/* oklch */ color: oklch(36.0% 0.176 284.2);
Tailwind
colors: {
  custom: {
    50: '#7c5eb4',
    500: '#3a1e93',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e93;
$custom-light: #7c5eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e93",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 147
  },
  "hsl": {
    "h": 254.359,
    "s": 66.102,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35996,
    "c": 0.17574,
    "h": 284.2
  },
  "luminance": 0.03935
}

Semantic roles & 50–950 ramp

primary
#3A1E93
secondary
#A3BE4F
accent
#E93FC0
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A1E93

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

Preview Lab → · Contrast checker → · Palette generator →

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