#3A1E95#3A1E95

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

Color values

HEX#3A1E95
RGBrgb(58, 30, 149)
HSLhsl(254, 66%, 35%)
HSVhsv(254, 80%, 58%)
CMYKcmyk(61.1%, 79.9%, 0%, 41.6%)
CIE-LABlab(23.66, 44.75, -59.99)
CIE-LCHlch(23.66, 74.85, 306.72°)
OKLaboklab(36.21% 0.0426 -0.1729)
OKLCHoklch(36.21% 0.178 283.8)
XYZxyz(7.6323, 3.9975, 28.7974)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E95 #79951E
analogous
#1E3D95 #3A1E95 #761E95
triadic
#3A1E95 #953A1E #1E953A
tetradic
#3A1E95 #951E3D #79951E #1E9576
square
#3A1E95 #951E3D #79951E #1E9576
split-complementary
#3A1E95 #95761E #3D951E
monochromatic
#12092F #261462 #3A1E95 #4E28C8 #7251DC

Accessibility & contrast

On white

11.67
#3A1E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1E95
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E95#FFFFFF#000000##FFFFFF
##3A1E951.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a1e95;
/* rgb */ color: rgb(58, 30, 149);
/* oklch */ color: oklch(36.2% 0.178 283.8);
Tailwind
colors: {
  custom: {
    50: '#7c5eb5',
    500: '#3a1e95',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e95;
$custom-light: #7c5eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e95",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 149
  },
  "hsl": {
    "h": 254.118,
    "s": 66.48,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36206,
    "c": 0.17811,
    "h": 283.8
  },
  "luminance": 0.03998
}

Semantic roles & 50–950 ramp

primary
#3A1E95
secondary
#A5BF50
accent
#E93EC1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A1E95

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

Preview Lab → · Contrast checker → · Palette generator →

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