#3A1A94#3A1A94

#3A1A94 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.180 H 284.6°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#3A1A94
RGBrgb(58, 26, 148)
HSLhsl(256, 70%, 34%)
HSVhsv(256, 82%, 58%)
CMYKcmyk(60.8%, 82.4%, 0%, 42%)
CIE-LABlab(22.92, 46.31, -60.61)
CIE-LCHlch(22.92, 76.28, 307.38°)
OKLaboklab(35.66% 0.0454 -0.1747)
OKLCHoklch(35.66% 0.18 284.6)
XYZxyz(7.4580, 3.7760, 28.3471)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A94 #74941A
analogous
#1A3794 #3A1A94 #771A94
triadic
#3A1A94 #943A1A #1A943A
tetradic
#3A1A94 #941A37 #74941A #1A9477
square
#3A1A94 #941A37 #74941A #1A9477
split-complementary
#3A1A94 #94771A #37941A
monochromatic
#11082C #261160 #3A1A94 #4E23C8 #7149DF

Accessibility & contrast

On white

11.96
#3A1A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3A1A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A94
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A94#FFFFFF#000000##FFFFFF
##3A1A941.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#003F58
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a1a94;
/* rgb */ color: rgb(58, 26, 148);
/* oklch */ color: oklch(35.7% 0.180 284.6);
Tailwind
colors: {
  custom: {
    50: '#7c5cb5',
    500: '#3a1a94',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a94;
$custom-light: #7c5cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a94",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 148
  },
  "hsl": {
    "h": 255.738,
    "s": 70.115,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35656,
    "c": 0.18048,
    "h": 284.6
  },
  "luminance": 0.03776
}

Semantic roles & 50–950 ramp

primary
#3A1A94
secondary
#A1C149
accent
#ED3BBE
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A1A94

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

Preview Lab → · Contrast checker → · Palette generator →

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