#3A204C#3A204C

#3A204C is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.0% C 0.082 H 309.6°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#3A204C
RGBrgb(58, 32, 76)
HSLhsl(275, 41%, 21%)
HSVhsv(275, 58%, 30%)
CMYKcmyk(23.7%, 57.9%, 0%, 70.2%)
CIE-LABlab(17.71, 22.07, -22.46)
CIE-LCHlch(17.71, 31.49, 314.50°)
OKLaboklab(29.98% 0.0521 -0.0629)
OKLCHoklch(29.98% 0.082 309.6)
XYZxyz(3.5657, 2.4544, 7.1220)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A204C #324C20
analogous
#24204C #3A204C #4C2048
triadic
#3A204C #4C3A20 #204C3A
tetradic
#3A204C #4C2420 #324C20 #20484C
square
#3A204C #4C2420 #324C20 #20484C
split-complementary
#3A204C #484C20 #204C24
monochromatic
#100916 #190E21 #3A204C #5B3277 #7C44A2

Accessibility & contrast

On white

14.09
#3A204C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3A204C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A204C
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A204C#FFFFFF#000000##FFFFFF
##3A204C1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142A4D
Deuteranopia (green-blind)
#1C2C4B
Tritanopia (blue-blind)
#382832
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a204c;
/* rgb */ color: rgb(58, 32, 76);
/* oklch */ color: oklch(30.0% 0.082 309.6);
Tailwind
colors: {
  custom: {
    50: '#725c7e',
    500: '#3a204c',
    950: '#000000',
  },
}
SCSS
$custom: #3a204c;
$custom-light: #725c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a204c",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 76
  },
  "hsl": {
    "h": 275.455,
    "s": 40.741,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29984,
    "c": 0.08166,
    "h": 309.6
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#3A204C
secondary
#5F8047
accent
#D15789
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08040A
muted
#7B797C

Preview Lab

Preview with #3A204C

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

Preview Lab → · Contrast checker → · Palette generator →

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