#3A1381#3A1381

#3A1381 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.165 H 290.1°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#3A1381
RGBrgb(58, 19, 129)
HSLhsl(261, 74%, 29%)
HSVhsv(261, 85%, 51%)
CMYKcmyk(55%, 85.3%, 0%, 49.4%)
CIE-LABlab(19.84, 43.92, -53.79)
CIE-LCHlch(19.84, 69.44, 309.23°)
OKLaboklab(32.92% 0.0565 -0.1547)
OKLCHoklch(32.92% 0.165 290.1)
XYZxyz(5.9391, 2.9500, 21.0211)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1381 #5A8113
analogous
#132381 #3A1381 #711381
triadic
#3A1381 #813A13 #13813A
tetradic
#3A1381 #811323 #5A8113 #138171
square
#3A1381 #811323 #5A8113 #138171
split-complementary
#3A1381 #817113 #238113
monochromatic
#0C041B #220B4C #3A1381 #521BB6 #6D2EE0

Accessibility & contrast

On white

13.21
#3A1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3A1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1381
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1381#FFFFFF#000000##FFFFFF
##3A13811.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#1F354C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a1381;
/* rgb */ color: rgb(58, 19, 129);
/* oklch */ color: oklch(32.9% 0.165 290.1);
Tailwind
colors: {
  custom: {
    50: '#7957a7',
    500: '#3a1381',
    950: '#000000',
  },
}
SCSS
$custom: #3a1381;
$custom-light: #7957a7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1381",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 261.273,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32923,
    "c": 0.1647,
    "h": 290.1
  },
  "luminance": 0.0295
}

Semantic roles & 50–950 ramp

primary
#3A1381
secondary
#8AB63A
accent
#F137AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0310
muted
#7C787F

Preview Lab

Preview with #3A1381

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

Preview Lab → · Contrast checker → · Palette generator →

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