#3A2392#3A2392

#3A2392 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.170 H 283.6°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#3A2392
RGBrgb(58, 35, 146)
HSLhsl(252, 61%, 35%)
HSVhsv(252, 76%, 57%)
CMYKcmyk(60.3%, 76%, 0%, 42.7%)
CIE-LABlab(24.25, 41.30, -57.18)
CIE-LCHlch(24.25, 70.53, 305.84°)
OKLaboklab(36.52% 0.04 -0.1648)
OKLCHoklch(36.52% 0.17 283.6)
XYZxyz(7.5327, 4.1764, 27.5978)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2392 #7B9223
analogous
#234492 #3A2392 #712392
triadic
#3A2392 #923A23 #23923A
tetradic
#3A2392 #922344 #7B9223 #239271
square
#3A2392 #922344 #7B9223 #239271
split-complementary
#3A2392 #927123 #449223
monochromatic
#130B2F #261761 #3A2392 #4E2FC3 #7358D7

Accessibility & contrast

On white

11.44
#3A2392 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3A2392 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2392
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2392#FFFFFF#000000##FFFFFF
##3A23921.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003690
Tritanopia (blue-blind)
#014259
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2392;
/* rgb */ color: rgb(58, 35, 146);
/* oklch */ color: oklch(36.5% 0.170 283.6);
Tailwind
colors: {
  custom: {
    50: '#7b61b3',
    500: '#3a2392',
    950: '#000000',
  },
}
SCSS
$custom: #3a2392;
$custom-light: #7b61b3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2392",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 146
  },
  "hsl": {
    "h": 252.432,
    "s": 61.326,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36521,
    "c": 0.16955,
    "h": 283.6
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#3A2392
secondary
#A6BB55
accent
#E443C3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A2392

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

Preview Lab → · Contrast checker → · Palette generator →

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