#3A1A7D#3A1A7D

#3A1A7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.154 H 290.1°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#3A1A7D
RGBrgb(58, 26, 125)
HSLhsl(259, 66%, 30%)
HSVhsv(259, 79%, 49%)
CMYKcmyk(53.6%, 79.2%, 0%, 51%)
CIE-LABlab(20.51, 39.63, -50.15)
CIE-LCHlch(20.51, 63.92, 308.32°)
OKLaboklab(33.26% 0.0528 -0.1441)
OKLCHoklch(33.26% 0.154 290.1)
XYZxyz(5.8149, 3.1187, 19.6936)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A7D #5D7D1A
analogous
#1A2C7D #3A1A7D #6C1A7D
triadic
#3A1A7D #7D3A1A #1A7D3A
tetradic
#3A1A7D #7D1A2C #5D7D1A #1A7D6C
square
#3A1A7D #7D1A2C #5D7D1A #1A7D6C
split-complementary
#3A1A7D #7D6C1A #2C7D1A
monochromatic
#0C0519 #220F4A #3A1A7D #5225B0 #6D3BD6

Accessibility & contrast

On white

12.93
#3A1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3A1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A7D
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A7D#FFFFFF#000000##FFFFFF
##3A1A7D1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#22364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a1a7d;
/* rgb */ color: rgb(58, 26, 125);
/* oklch */ color: oklch(33.3% 0.154 290.1);
Tailwind
colors: {
  custom: {
    50: '#785ba4',
    500: '#3a1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a7d;
$custom-light: #785ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a7d",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 259.394,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33264,
    "c": 0.15351,
    "h": 290.1
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#3A1A7D
secondary
#8DB142
accent
#E93FB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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