#3A1E8A#3A1E8A

#3A1E8A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.165 H 286.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#3A1E8A
RGBrgb(58, 30, 138)
HSLhsl(256, 64%, 33%)
HSVhsv(256, 78%, 54%)
CMYKcmyk(58%, 78.3%, 0%, 45.9%)
CIE-LABlab(22.52, 41.47, -55.04)
CIE-LCHlch(22.52, 68.92, 307.00°)
OKLaboklab(35.07% 0.0459 -0.1585)
OKLCHoklch(35.07% 0.165 286.1)
XYZxyz(6.7953, 3.6627, 24.3887)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1E8A #6E8A1E
analogous
#1E388A #3A1E8A #701E8A
triadic
#3A1E8A #8A3A1E #1E8A3A
tetradic
#3A1E8A #8A1E38 #6E8A1E #1E8A70
square
#3A1E8A #8A1E38 #6E8A1E #1E8A70
split-complementary
#3A1E8A #8A701E #388A1E
monochromatic
#100825 #251358 #3A1E8A #4F29BC #6F4BD8

Accessibility & contrast

On white

12.12
#3A1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3A1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1E8A
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1E8A#FFFFFF#000000##FFFFFF
##3A1E8A1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#133D53
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a1e8a;
/* rgb */ color: rgb(58, 30, 138);
/* oklch */ color: oklch(35.1% 0.165 286.1);
Tailwind
colors: {
  custom: {
    50: '#7a5ead',
    500: '#3a1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #3a1e8a;
$custom-light: #7a5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1e8a",
  "rgb": {
    "r": 58,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 255.556,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35067,
    "c": 0.16499,
    "h": 286.1
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#3A1E8A
secondary
#9DBA4A
accent
#E741BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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