#3A204F#3A204F

#3A204F is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.2% C 0.086 H 307.6°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#3A204F
RGBrgb(58, 32, 79)
HSLhsl(273, 42%, 22%)
HSVhsv(273, 59%, 31%)
CMYKcmyk(26.6%, 59.5%, 0%, 69%)
CIE-LABlab(17.91, 22.89, -24.19)
CIE-LCHlch(17.91, 33.30, 313.42°)
OKLaboklab(30.19% 0.0523 -0.068)
OKLCHoklch(30.19% 0.086 307.6)
XYZxyz(3.6724, 2.4971, 7.6841)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A204F #354F20
analogous
#23204F #3A204F #4F204D
triadic
#3A204F #4F3A20 #204F3A
tetradic
#3A204F #4F2320 #354F20 #204D4F
square
#3A204F #4F2320 #354F20 #204D4F
split-complementary
#3A204F #4D4F20 #204F23
monochromatic
#100916 #1A0E23 #3A204F #5A327B #7A43A6

Accessibility & contrast

On white

14.01
#3A204F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3A204F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A204F
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A204F#FFFFFF#000000##FFFFFF
##3A204F1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112B51
Deuteranopia (green-blind)
#1A2C4E
Tritanopia (blue-blind)
#372834
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a204f;
/* rgb */ color: rgb(58, 32, 79);
/* oklch */ color: oklch(30.2% 0.086 307.6);
Tailwind
colors: {
  custom: {
    50: '#725c80',
    500: '#3a204f',
    950: '#000000',
  },
}
SCSS
$custom: #3a204f;
$custom-light: #725c80;
$custom-dark: #000000;
JSON
{
  "hex": "#3a204f",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 79
  },
  "hsl": {
    "h": 273.191,
    "s": 42.342,
    "l": 21.765
  },
  "oklch": {
    "l": 0.3019,
    "c": 0.08577,
    "h": 307.6
  },
  "luminance": 0.02497
}

Semantic roles & 50–950 ramp

primary
#3A204F
secondary
#628347
accent
#D2568D
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08040A
muted
#7B797C

Preview Lab

Preview with #3A204F

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

Preview Lab → · Contrast checker → · Palette generator →

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