#3A1970#3A1970

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

Color values

HEX#3A1970
RGBrgb(58, 25, 112)
HSLhsl(263, 64%, 27%)
HSVhsv(263, 78%, 44%)
CMYKcmyk(48.2%, 77.7%, 0%, 56.1%)
CIE-LABlab(19.07, 36.37, -44.17)
CIE-LCHlch(19.07, 57.21, 309.47°)
OKLaboklab(31.87% 0.0574 -0.1266)
OKLCHoklch(31.87% 0.139 294.4)
XYZxyz(5.0164, 2.7645, 15.5954)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1970 #4F7019
analogous
#192370 #3A1970 #661970
triadic
#3A1970 #703A19 #19703A
tetradic
#3A1970 #701923 #4F7019 #197066
square
#3A1970 #701923 #4F7019 #197066
split-complementary
#3A1970 #706619 #237019
monochromatic
#0D0619 #200E3E #3A1970 #5424A2 #6E32D1

Accessibility & contrast

On white

13.52
#3A1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3A1970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1970
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1970#FFFFFF#000000##FFFFFF
##3A19701.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#2A3043
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a1970;
/* rgb */ color: rgb(58, 25, 112);
/* oklch */ color: oklch(31.9% 0.139 294.4);
Tailwind
colors: {
  custom: {
    50: '#76599a',
    500: '#3a1970',
    950: '#000000',
  },
}
SCSS
$custom: #3a1970;
$custom-light: #76599a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1970",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 262.759,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31868,
    "c": 0.13899,
    "h": 294.4
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#3A1970
secondary
#7FA540
accent
#E741A8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A1970

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

Preview Lab → · Contrast checker → · Palette generator →

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