#3A1973#3A1973

#3A1973 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.143 H 293.4°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#3A1973
RGBrgb(58, 25, 115)
HSLhsl(262, 64%, 27%)
HSVhsv(262, 78%, 45%)
CMYKcmyk(49.6%, 78.3%, 0%, 54.9%)
CIE-LABlab(19.36, 37.23, -45.64)
CIE-LCHlch(19.36, 58.90, 309.21°)
OKLaboklab(32.16% 0.0566 -0.1309)
OKLCHoklch(32.16% 0.143 293.4)
XYZxyz(5.1862, 2.8324, 16.4898)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1973 #527319
analogous
#192573 #3A1973 #671973
triadic
#3A1973 #733A19 #19733A
tetradic
#3A1973 #731925 #527319 #197367
square
#3A1973 #731925 #527319 #197367
split-complementary
#3A1973 #736719 #257319
monochromatic
#0D0519 #210E41 #3A1973 #5324A5 #6E34D3

Accessibility & contrast

On white

13.40
#3A1973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1973
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1973#FFFFFF#000000##FFFFFF
##3A19731.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002D71
Tritanopia (blue-blind)
#293145
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a1973;
/* rgb */ color: rgb(58, 25, 115);
/* oklch */ color: oklch(32.2% 0.143 293.4);
Tailwind
colors: {
  custom: {
    50: '#77599c',
    500: '#3a1973',
    950: '#000000',
  },
}
SCSS
$custom: #3a1973;
$custom-light: #77599c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1973",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 262,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32156,
    "c": 0.1426,
    "h": 293.4
  },
  "luminance": 0.02833
}

Semantic roles & 50–950 ramp

primary
#3A1973
secondary
#82A840
accent
#E741AA
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1973

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

Preview Lab → · Contrast checker → · Palette generator →

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