#3A2170#3A2170

#3A2170 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.0% C 0.129 H 292.4°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#3A2170
RGBrgb(58, 33, 112)
HSLhsl(259, 54%, 28%)
HSVhsv(259, 71%, 44%)
CMYKcmyk(48.2%, 70.5%, 0%, 56.1%)
CIE-LABlab(20.66, 31.94, -41.58)
CIE-LCHlch(20.66, 52.43, 307.53°)
OKLaboklab(33% 0.0491 -0.119)
OKLCHoklch(33% 0.129 292.4)
XYZxyz(5.2126, 3.1569, 15.6608)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2170 #577021
analogous
#212F70 #3A2170 #612170
triadic
#3A2170 #703A21 #21703A
tetradic
#3A2170 #70212F #577021 #217061
square
#3A2170 #70212F #577021 #217061
split-complementary
#3A2170 #706121 #2F7021
monochromatic
#0C0718 #221341 #3A2170 #522F9F #6D44C8

Accessibility & contrast

On white

12.87
#3A2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3A2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2170
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2170#FFFFFF#000000##FFFFFF
##3A21701.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003372
Deuteranopia (green-blind)
#00306E
Tritanopia (blue-blind)
#2A3445
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a2170;
/* rgb */ color: rgb(58, 33, 112);
/* oklch */ color: oklch(33.0% 0.129 292.4);
Tailwind
colors: {
  custom: {
    50: '#765e9a',
    500: '#3a2170',
    950: '#000000',
  },
}
SCSS
$custom: #3a2170;
$custom-light: #765e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2170",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 258.987,
    "s": 54.483,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32997,
    "c": 0.12876,
    "h": 292.4
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#3A2170
secondary
#87A449
accent
#DE4AAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3A2170

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

Preview Lab → · Contrast checker → · Palette generator →

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