#3A1A82#3A1A82

#3A1A82 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.159 H 288.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#3A1A82
RGBrgb(58, 26, 130)
HSLhsl(258, 67%, 31%)
HSVhsv(258, 80%, 51%)
CMYKcmyk(55.4%, 80%, 0%, 49%)
CIE-LABlab(21.02, 41.09, -52.49)
CIE-LCHlch(21.02, 66.66, 308.05°)
OKLaboklab(33.77% 0.0513 -0.151)
OKLCHoklch(33.77% 0.159 288.8)
XYZxyz(6.1424, 3.2497, 21.4184)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A82 #62821A
analogous
#1A2E82 #3A1A82 #6E1A82
triadic
#3A1A82 #823A1A #1A823A
tetradic
#3A1A82 #821A2E #62821A #1A826E
square
#3A1A82 #821A2E #62821A #1A826E
split-complementary
#3A1A82 #826E1A #2E821A
monochromatic
#0C061C #23104F #3A1A82 #5124B5 #6E3ED8

Accessibility & contrast

On white

12.73
#3A1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3A1A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1A82
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A82#FFFFFF#000000##FFFFFF
##3A1A821.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#1D384D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a1a82;
/* rgb */ color: rgb(58, 26, 130);
/* oklch */ color: oklch(33.8% 0.159 288.8);
Tailwind
colors: {
  custom: {
    50: '#795ba7',
    500: '#3a1a82',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a82;
$custom-light: #795ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a82",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 258.462,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33769,
    "c": 0.15946,
    "h": 288.8
  },
  "luminance": 0.0325
}

Semantic roles & 50–950 ramp

primary
#3A1A82
secondary
#92B642
accent
#EA3EB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3A1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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