#3A2197#3A2197

#3A2197 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.178 H 283.0°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#3A2197
RGBrgb(58, 33, 151)
HSLhsl(253, 64%, 36%)
HSVhsv(253, 78%, 59%)
CMYKcmyk(61.6%, 78.1%, 0%, 40.8%)
CIE-LABlab(24.39, 43.87, -60.03)
CIE-LCHlch(24.39, 74.35, 306.16°)
OKLaboklab(36.78% 0.0401 -0.1731)
OKLCHoklch(36.78% 0.178 283)
XYZxyz(7.8730, 4.2211, 29.6720)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2197 #7E9721
analogous
#214397 #3A2197 #752197
triadic
#3A2197 #973A21 #21973A
tetradic
#3A2197 #972143 #7E9721 #219775
square
#3A2197 #972143 #7E9721 #219775
split-complementary
#3A2197 #977521 #439721
monochromatic
#130B33 #271665 #3A2197 #4D2CC9 #7458DA

Accessibility & contrast

On white

11.39
#3A2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2197
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2197#FFFFFF#000000##FFFFFF
##3A21971.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a2197;
/* rgb */ color: rgb(58, 33, 151);
/* oklch */ color: oklch(36.8% 0.178 283.0);
Tailwind
colors: {
  custom: {
    50: '#7c60b7',
    500: '#3a2197',
    950: '#000000',
  },
}
SCSS
$custom: #3a2197;
$custom-light: #7c60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2197",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 252.712,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36775,
    "c": 0.17765,
    "h": 283
  },
  "luminance": 0.04222
}

Semantic roles & 50–950 ramp

primary
#3A2197
secondary
#A8BE55
accent
#E741C4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2197

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

Preview Lab → · Contrast checker → · Palette generator →

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