#3A2397#3A2397

#3A2397 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.176 H 282.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3A2397
RGBrgb(58, 35, 151)
HSLhsl(252, 62%, 36%)
HSVhsv(252, 77%, 59%)
CMYKcmyk(61.6%, 76.8%, 0%, 40.8%)
CIE-LABlab(24.75, 42.83, -59.43)
CIE-LCHlch(24.75, 73.26, 305.78°)
OKLaboklab(37.03% 0.0387 -0.1714)
OKLCHoklch(37.03% 0.176 282.7)
XYZxyz(7.9301, 4.3354, 29.6911)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2397 #809723
analogous
#234697 #3A2397 #742397
triadic
#3A2397 #973A23 #23973A
tetradic
#3A2397 #972346 #809723 #239774
square
#3A2397 #972346 #809723 #239774
split-complementary
#3A2397 #977423 #469723
monochromatic
#140C34 #271765 #3A2397 #4D2FC9 #745BD9

Accessibility & contrast

On white

11.25
#3A2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3A2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2397
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2397#FFFFFF#000000##FFFFFF
##3A23971.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2397;
/* rgb */ color: rgb(58, 35, 151);
/* oklch */ color: oklch(37.0% 0.176 282.7);
Tailwind
colors: {
  custom: {
    50: '#7c61b7',
    500: '#3a2397',
    950: '#000000',
  },
}
SCSS
$custom: #3a2397;
$custom-light: #7c61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2397",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 251.897,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37028,
    "c": 0.17567,
    "h": 282.7
  },
  "luminance": 0.04336
}

Semantic roles & 50–950 ramp

primary
#3A2397
secondary
#A9BE58
accent
#E542C5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3A2397

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

Preview Lab → · Contrast checker → · Palette generator →

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