#3A2192#3A2192

#3A2192 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.172 H 284.0°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#3A2192
RGBrgb(58, 33, 146)
HSLhsl(253, 63%, 35%)
HSVhsv(253, 77%, 57%)
CMYKcmyk(60.3%, 77.4%, 0%, 42.7%)
CIE-LABlab(23.88, 42.35, -57.79)
CIE-LCHlch(23.88, 71.65, 306.23°)
OKLaboklab(36.26% 0.0414 -0.1665)
OKLCHoklch(36.26% 0.172 284)
XYZxyz(7.4755, 4.0621, 27.5787)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2192 #799221
analogous
#214192 #3A2192 #722192
triadic
#3A2192 #923A21 #21923A
tetradic
#3A2192 #922141 #799221 #219272
square
#3A2192 #922141 #799221 #219272
split-complementary
#3A2192 #927221 #419221
monochromatic
#120A2E #261660 #3A2192 #4E2CC4 #7255D9

Accessibility & contrast

On white

11.59
#3A2192 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3A2192 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2192
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2192#FFFFFF#000000##FFFFFF
##3A21921.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C95
Deuteranopia (green-blind)
#003590
Tritanopia (blue-blind)
#024158
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a2192;
/* rgb */ color: rgb(58, 33, 146);
/* oklch */ color: oklch(36.3% 0.172 284.0);
Tailwind
colors: {
  custom: {
    50: '#7b60b3',
    500: '#3a2192',
    950: '#000000',
  },
}
SCSS
$custom: #3a2192;
$custom-light: #7b60b3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2192",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 146
  },
  "hsl": {
    "h": 253.274,
    "s": 63.128,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36261,
    "c": 0.17162,
    "h": 284
  },
  "luminance": 0.04063
}

Semantic roles & 50–950 ramp

primary
#3A2192
secondary
#A5BC53
accent
#E642C2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A2192

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

Preview Lab → · Contrast checker → · Palette generator →

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