#3A204D#3A204D

#3A204D is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.1% C 0.083 H 308.9°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#3A204D
RGBrgb(58, 32, 77)
HSLhsl(275, 41%, 21%)
HSVhsv(275, 58%, 30%)
CMYKcmyk(24.7%, 58.4%, 0%, 69.8%)
CIE-LABlab(17.78, 22.34, -23.04)
CIE-LCHlch(17.78, 32.10, 314.12°)
OKLaboklab(30.05% 0.0522 -0.0646)
OKLCHoklch(30.05% 0.083 308.9)
XYZxyz(3.6007, 2.4684, 7.3065)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A204D #334D20
analogous
#24204D #3A204D #4D204A
triadic
#3A204D #4D3A20 #204D3A
tetradic
#3A204D #4D2420 #334D20 #204A4D
square
#3A204D #4D2420 #334D20 #204A4D
split-complementary
#3A204D #4A4D20 #204D24
monochromatic
#100916 #190E22 #3A204D #5B3278 #7B44A3

Accessibility & contrast

On white

14.06
#3A204D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A204D
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A204D#FFFFFF#000000##FFFFFF
##3A204D1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4F
Deuteranopia (green-blind)
#1B2C4C
Tritanopia (blue-blind)
#372833
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a204d;
/* rgb */ color: rgb(58, 32, 77);
/* oklch */ color: oklch(30.1% 0.083 308.9);
Tailwind
colors: {
  custom: {
    50: '#725c7f',
    500: '#3a204d',
    950: '#000000',
  },
}
SCSS
$custom: #3a204d;
$custom-light: #725c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a204d",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 77
  },
  "hsl": {
    "h": 274.667,
    "s": 41.284,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30052,
    "c": 0.08302,
    "h": 308.9
  },
  "luminance": 0.02468
}

Semantic roles & 50–950 ramp

primary
#3A204D
secondary
#608147
accent
#D1578A
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#08040A
muted
#7B797C

Preview Lab

Preview with #3A204D

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

Preview Lab → · Contrast checker → · Palette generator →

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