#3A2097#3A2097

#3A2097 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.179 H 283.2°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#3A2097
RGBrgb(58, 32, 151)
HSLhsl(253, 65%, 36%)
HSVhsv(253, 79%, 59%)
CMYKcmyk(61.6%, 78.8%, 0%, 40.8%)
CIE-LABlab(24.21, 44.37, -60.32)
CIE-LCHlch(24.21, 74.88, 306.34°)
OKLaboklab(36.65% 0.0407 -0.1739)
OKLCHoklch(36.65% 0.179 283.2)
XYZxyz(7.8456, 4.1664, 29.6629)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2097 #7D9720
analogous
#204197 #3A2097 #752097
triadic
#3A2097 #973A20 #20973A
tetradic
#3A2097 #972041 #7D9720 #209775
square
#3A2097 #972041 #7D9720 #209775
split-complementary
#3A2097 #977520 #419720
monochromatic
#130B32 #271564 #3A2097 #4D2BC9 #7356DB

Accessibility & contrast

On white

11.45
#3A2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2097
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2097#FFFFFF#000000##FFFFFF
##3A20971.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a2097;
/* rgb */ color: rgb(58, 32, 151);
/* oklch */ color: oklch(36.7% 0.179 283.2);
Tailwind
colors: {
  custom: {
    50: '#7c5fb7',
    500: '#3a2097',
    950: '#000000',
  },
}
SCSS
$custom: #3a2097;
$custom-light: #7c5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2097",
  "rgb": {
    "r": 58,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 253.109,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36652,
    "c": 0.17861,
    "h": 283.2
  },
  "luminance": 0.04167
}

Semantic roles & 50–950 ramp

primary
#3A2097
secondary
#A8BF54
accent
#E840C3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2097

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

Preview Lab → · Contrast checker → · Palette generator →

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