#3A205B#3A205B

#3A205B is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.1% C 0.102 H 300.9°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#3A205B
RGBrgb(58, 32, 91)
HSLhsl(266, 48%, 24%)
HSVhsv(266, 65%, 36%)
CMYKcmyk(36.3%, 64.8%, 0%, 64.3%)
CIE-LABlab(18.75, 26.28, -30.91)
CIE-LCHlch(18.75, 40.57, 310.37°)
OKLaboklab(31.08% 0.0525 -0.0876)
OKLCHoklch(31.08% 0.102 300.9)
XYZxyz(4.1493, 2.6879, 10.1957)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A205B #415B20
analogous
#20245B #3A205B #58205B
triadic
#3A205B #5B3A20 #205B3A
tetradic
#3A205B #5B2024 #415B20 #205B58
square
#3A205B #5B2024 #415B20 #205B58
split-complementary
#3A205B #5B5820 #245B20
monochromatic
#0E0817 #1D102E #3A205B #573088 #7440B6

Accessibility & contrast

On white

13.66
#3A205B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3A205B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A205B
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A205B#FFFFFF#000000##FFFFFF
##3A205B1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012D5D
Deuteranopia (green-blind)
#0D2D5A
Tritanopia (blue-blind)
#332C3A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a205b;
/* rgb */ color: rgb(58, 32, 91);
/* oklch */ color: oklch(31.1% 0.102 300.9);
Tailwind
colors: {
  custom: {
    50: '#735d8a',
    500: '#3a205b',
    950: '#000000',
  },
}
SCSS
$custom: #3a205b;
$custom-light: #735d8a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a205b",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 91
  },
  "hsl": {
    "h": 266.441,
    "s": 47.967,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31078,
    "c": 0.10218,
    "h": 300.9
  },
  "luminance": 0.02688
}

Semantic roles & 50–950 ramp

primary
#3A205B
secondary
#708F47
accent
#D8509C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #3A205B

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

Preview Lab → · Contrast checker → · Palette generator →

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