#3A2393#3A2393

#3A2393 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.171 H 283.5°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3A2393
RGBrgb(58, 35, 147)
HSLhsl(252, 62%, 36%)
HSVhsv(252, 76%, 58%)
CMYKcmyk(60.5%, 76.2%, 0%, 42.4%)
CIE-LABlab(24.35, 41.60, -57.63)
CIE-LCHlch(24.35, 71.08, 305.82°)
OKLaboklab(36.62% 0.0397 -0.1661)
OKLCHoklch(36.62% 0.171 283.5)
XYZxyz(7.6108, 4.2077, 28.0092)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2393 #7C9323
analogous
#234493 #3A2393 #722393
triadic
#3A2393 #933A23 #23933A
tetradic
#3A2393 #932344 #7C9323 #239372
square
#3A2393 #932344 #7C9323 #239372
split-complementary
#3A2393 #937223 #449323
monochromatic
#130B30 #261762 #3A2393 #4E2FC4 #7359D7

Accessibility & contrast

On white

11.40
#3A2393 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2393
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2393#FFFFFF#000000##FFFFFF
##3A23931.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003691
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2393;
/* rgb */ color: rgb(58, 35, 147);
/* oklch */ color: oklch(36.6% 0.171 283.5);
Tailwind
colors: {
  custom: {
    50: '#7b61b4',
    500: '#3a2393',
    950: '#000000',
  },
}
SCSS
$custom: #3a2393;
$custom-light: #7b61b4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2393",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 147
  },
  "hsl": {
    "h": 252.321,
    "s": 61.538,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36622,
    "c": 0.17079,
    "h": 283.5
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#3A2393
secondary
#A7BC56
accent
#E543C3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A2393

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

Preview Lab → · Contrast checker → · Palette generator →

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