#3A1A72#3A1A72

#3A1A72 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.140 H 293.5°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#3A1A72
RGBrgb(58, 26, 114)
HSLhsl(262, 63%, 27%)
HSVhsv(262, 77%, 45%)
CMYKcmyk(49.1%, 77.2%, 0%, 55.3%)
CIE-LABlab(19.45, 36.43, -44.85)
CIE-LCHlch(19.45, 57.78, 309.08°)
OKLaboklab(32.19% 0.0559 -0.1286)
OKLCHoklch(32.19% 0.14 293.5)
XYZxyz(5.1507, 2.8531, 16.1956)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1A72 #52721A
analogous
#1A2672 #3A1A72 #661A72
triadic
#3A1A72 #723A1A #1A723A
tetradic
#3A1A72 #721A26 #52721A #1A7266
square
#3A1A72 #721A26 #52721A #1A7266
split-complementary
#3A1A72 #72661A #26721A
monochromatic
#0D0619 #210F40 #3A1A72 #5325A4 #6E35D1

Accessibility & contrast

On white

13.37
#3A1A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1A72
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1A72#FFFFFF#000000##FFFFFF
##3A1A721.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#293144
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1a72;
/* rgb */ color: rgb(58, 26, 114);
/* oklch */ color: oklch(32.2% 0.140 293.5);
Tailwind
colors: {
  custom: {
    50: '#765a9b',
    500: '#3a1a72',
    950: '#000000',
  },
}
SCSS
$custom: #3a1a72;
$custom-light: #765a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1a72",
  "rgb": {
    "r": 58,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 261.818,
    "s": 62.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32187,
    "c": 0.14024,
    "h": 293.5
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#3A1A72
secondary
#82A741
accent
#E642AA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1A72

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

Preview Lab → · Contrast checker → · Palette generator →

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