#3A205C#3A205C

#3A205C is a dark, moderate violet. Relative luminance 0.027; OKLCH L 31.2% C 0.104 H 300.5°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#3A205C
RGBrgb(58, 32, 92)
HSLhsl(266, 48%, 24%)
HSVhsv(266, 65%, 36%)
CMYKcmyk(37%, 65.2%, 0%, 63.9%)
CIE-LABlab(18.82, 26.57, -31.46)
CIE-LCHlch(18.82, 41.18, 310.19°)
OKLaboklab(31.16% 0.0525 -0.0892)
OKLCHoklch(31.16% 0.104 300.5)
XYZxyz(4.1927, 2.7052, 10.4244)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A205C #425C20
analogous
#20245C #3A205C #58205C
triadic
#3A205C #5C3A20 #205C3A
tetradic
#3A205C #5C2024 #425C20 #205C58
square
#3A205C #5C2024 #425C20 #205C58
split-complementary
#3A205C #5C5820 #245C20
monochromatic
#0E0817 #1D102F #3A205C #573089 #7340B7

Accessibility & contrast

On white

13.63
#3A205C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A205C
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A205C#FFFFFF#000000##FFFFFF
##3A205C1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5E
Deuteranopia (green-blind)
#0C2D5B
Tritanopia (blue-blind)
#332D3A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a205c;
/* rgb */ color: rgb(58, 32, 92);
/* oklch */ color: oklch(31.2% 0.104 300.5);
Tailwind
colors: {
  custom: {
    50: '#735d8b',
    500: '#3a205c',
    950: '#000000',
  },
}
SCSS
$custom: #3a205c;
$custom-light: #735d8b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a205c",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 92
  },
  "hsl": {
    "h": 266,
    "s": 48.387,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31157,
    "c": 0.10353,
    "h": 300.5
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#3A205C
secondary
#719047
accent
#D8509D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #3A205C

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

Preview Lab → · Contrast checker → · Palette generator →

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