#3A1A71#3A1A71

#3A1A71 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.139 H 293.8°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#3A1A71
RGBrgb(58, 26, 113)
HSLhsl(262, 63%, 27%)
HSVhsv(262, 77%, 44%)
CMYKcmyk(48.7%, 77%, 0%, 55.7%)
CIE-LABlab(19.35, 36.14, -44.36)
CIE-LCHlch(19.35, 57.22, 309.17°)
OKLaboklab(32.09% 0.0562 -0.1272)
OKLCHoklch(32.09% 0.139 293.8)
XYZxyz(5.0941, 2.8304, 15.8975)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A71 #51711A
analogous
#1A2671 #3A1A71 #661A71
triadic
#3A1A71 #713A1A #1A713A
tetradic
#3A1A71 #711A26 #51711A #1A7166
square
#3A1A71 #711A26 #51711A #1A7166
split-complementary
#3A1A71 #71661A #26711A
monochromatic
#0D0619 #200F3F #3A1A71 #5425A3 #6E35D0

Accessibility & contrast

On white

13.41
#3A1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3A1A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A71
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A71#FFFFFF#000000##FFFFFF
##3A1A711.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003074
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#2A3144
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1a71;
/* rgb */ color: rgb(58, 26, 113);
/* oklch */ color: oklch(32.1% 0.139 293.8);
Tailwind
colors: {
  custom: {
    50: '#765a9b',
    500: '#3a1a71',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a71;
$custom-light: #765a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a71",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 262.069,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32092,
    "c": 0.13902,
    "h": 293.8
  },
  "luminance": 0.02831
}

Semantic roles & 50–950 ramp

primary
#3A1A71
secondary
#81A641
accent
#E642AA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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