#3A2193#3A2193

#3A2193 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.173 H 283.8°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#3A2193
RGBrgb(58, 33, 147)
HSLhsl(253, 63%, 35%)
HSVhsv(253, 78%, 58%)
CMYKcmyk(60.5%, 77.6%, 0%, 42.4%)
CIE-LABlab(23.98, 42.65, -58.24)
CIE-LCHlch(23.98, 72.19, 306.22°)
OKLaboklab(36.36% 0.0412 -0.1679)
OKLCHoklch(36.36% 0.173 283.8)
XYZxyz(7.5536, 4.0933, 27.9902)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2193 #7A9321
analogous
#214193 #3A2193 #732193
triadic
#3A2193 #933A21 #21933A
tetradic
#3A2193 #932141 #7A9321 #219373
square
#3A2193 #932141 #7A9321 #219373
split-complementary
#3A2193 #937321 #419321
monochromatic
#130B2F #261661 #3A2193 #4E2CC5 #7255D9

Accessibility & contrast

On white

11.55
#3A2193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3A2193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2193
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2193#FFFFFF#000000##FFFFFF
##3A21931.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003591
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a2193;
/* rgb */ color: rgb(58, 33, 147);
/* oklch */ color: oklch(36.4% 0.173 283.8);
Tailwind
colors: {
  custom: {
    50: '#7c60b4',
    500: '#3a2193',
    950: '#000000',
  },
}
SCSS
$custom: #3a2193;
$custom-light: #7c60b4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2193",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 253.158,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36363,
    "c": 0.17284,
    "h": 283.8
  },
  "luminance": 0.04094
}

Semantic roles & 50–950 ramp

primary
#3A2193
secondary
#A6BD53
accent
#E641C2
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2193

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

Preview Lab → · Contrast checker → · Palette generator →

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