#3A2195#3A2195

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

Color values

HEX#3A2195
RGBrgb(58, 33, 149)
HSLhsl(253, 64%, 36%)
HSVhsv(253, 78%, 58%)
CMYKcmyk(61.1%, 77.9%, 0%, 41.6%)
CIE-LABlab(24.18, 43.26, -59.14)
CIE-LCHlch(24.18, 73.27, 306.18°)
OKLaboklab(36.57% 0.0406 -0.1705)
OKLCHoklch(36.57% 0.175 283.4)
XYZxyz(7.7119, 4.1567, 28.8239)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2195 #7C9521
analogous
#214295 #3A2195 #742195
triadic
#3A2195 #953A21 #21953A
tetradic
#3A2195 #952142 #7C9521 #219574
square
#3A2195 #952142 #7C9521 #219574
split-complementary
#3A2195 #957421 #429521
monochromatic
#130B31 #261663 #3A2195 #4E2CC7 #7357DA

Accessibility & contrast

On white

11.47
#3A2195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#3A2195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2195
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2195#FFFFFF#000000##FFFFFF
##3A21951.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003693
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3a2195;
/* rgb */ color: rgb(58, 33, 149);
/* oklch */ color: oklch(36.6% 0.175 283.4);
Tailwind
colors: {
  custom: {
    50: '#7c60b5',
    500: '#3a2195',
    950: '#000000',
  },
}
SCSS
$custom: #3a2195;
$custom-light: #7c60b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2195",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 252.931,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36568,
    "c": 0.17525,
    "h": 283.4
  },
  "luminance": 0.04157
}

Semantic roles & 50–950 ramp

primary
#3A2195
secondary
#A7BE54
accent
#E741C3
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2195

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

Preview Lab → · Contrast checker → · Palette generator →

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