#3A2396#3A2396

#3A2396 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.174 H 282.9°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#3A2396
RGBrgb(58, 35, 150)
HSLhsl(252, 62%, 36%)
HSVhsv(252, 77%, 59%)
CMYKcmyk(61.3%, 76.7%, 0%, 41.2%)
CIE-LABlab(24.65, 42.53, -58.99)
CIE-LCHlch(24.65, 72.72, 305.79°)
OKLaboklab(36.93% 0.039 -0.17)
OKLCHoklch(36.93% 0.174 282.9)
XYZxyz(7.8493, 4.3031, 29.2652)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2396 #7F9623
analogous
#234696 #3A2396 #742396
triadic
#3A2396 #963A23 #23963A
tetradic
#3A2396 #962346 #7F9623 #239674
square
#3A2396 #962346 #7F9623 #239674
split-complementary
#3A2396 #967423 #469623
monochromatic
#140C33 #271764 #3A2396 #4D2FC8 #745BD9

Accessibility & contrast

On white

11.29
#3A2396 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A2396 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2396
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2396#FFFFFF#000000##FFFFFF
##3A23961.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2396;
/* rgb */ color: rgb(58, 35, 150);
/* oklch */ color: oklch(36.9% 0.174 282.9);
Tailwind
colors: {
  custom: {
    50: '#7c61b6',
    500: '#3a2396',
    950: '#000000',
  },
}
SCSS
$custom: #3a2396;
$custom-light: #7c61b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2396",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 150
  },
  "hsl": {
    "h": 252,
    "s": 62.162,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36926,
    "c": 0.17446,
    "h": 282.9
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#3A2396
secondary
#A9BD58
accent
#E543C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2396

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

Preview Lab → · Contrast checker → · Palette generator →

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