#3A1972#3A1972

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

Color values

HEX#3A1972
RGBrgb(58, 25, 114)
HSLhsl(262, 64%, 27%)
HSVhsv(262, 78%, 45%)
CMYKcmyk(49.1%, 78.1%, 0%, 55.3%)
CIE-LABlab(19.26, 36.94, -45.15)
CIE-LCHlch(19.26, 58.34, 309.29°)
OKLaboklab(32.06% 0.0569 -0.1295)
OKLCHoklch(32.06% 0.141 293.7)
XYZxyz(5.1290, 2.8095, 16.1884)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1972 #517219
analogous
#192572 #3A1972 #671972
triadic
#3A1972 #723A19 #19723A
tetradic
#3A1972 #721925 #517219 #197267
square
#3A1972 #721925 #517219 #197267
split-complementary
#3A1972 #726719 #257219
monochromatic
#0D0619 #200E40 #3A1972 #5424A4 #6E33D2

Accessibility & contrast

On white

13.44
#3A1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3A1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1972
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1972#FFFFFF#000000##FFFFFF
##3A19721.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.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: #3a1972;
/* rgb */ color: rgb(58, 25, 114);
/* oklch */ color: oklch(32.1% 0.141 293.7);
Tailwind
colors: {
  custom: {
    50: '#77599b',
    500: '#3a1972',
    950: '#000000',
  },
}
SCSS
$custom: #3a1972;
$custom-light: #77599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1972",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 262.247,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3206,
    "c": 0.14141,
    "h": 293.7
  },
  "luminance": 0.0281
}

Semantic roles & 50–950 ramp

primary
#3A1972
secondary
#81A740
accent
#E741A9
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1972

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

Preview Lab → · Contrast checker → · Palette generator →

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