#3B2397#3B2397

#3B2397 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.176 H 283.2°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#3B2397
RGBrgb(59, 35, 151)
HSLhsl(252, 62%, 36%)
HSVhsv(252, 77%, 59%)
CMYKcmyk(60.9%, 76.8%, 0%, 40.8%)
CIE-LABlab(24.85, 42.96, -59.27)
CIE-LCHlch(24.85, 73.21, 305.94°)
OKLaboklab(37.12% 0.0402 -0.1709)
OKLCHoklch(37.12% 0.176 283.2)
XYZxyz(7.9889, 4.3657, 29.6938)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2397 #7F9723
analogous
#234597 #3B2397 #752397
triadic
#3B2397 #973B23 #23973B
tetradic
#3B2397 #972345 #7F9723 #239775
square
#3B2397 #972345 #7F9723 #239775
split-complementary
#3B2397 #977523 #459723
monochromatic
#140C34 #281765 #3B2397 #4E2FC9 #755BD9

Accessibility & contrast

On white

11.21
#3B2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B2397
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2397#FFFFFF#000000##FFFFFF
##3B23971.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.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: #3b2397;
/* rgb */ color: rgb(59, 35, 151);
/* oklch */ color: oklch(37.1% 0.176 283.2);
Tailwind
colors: {
  custom: {
    50: '#7d61b7',
    500: '#3b2397',
    950: '#000000',
  },
}
SCSS
$custom: #3b2397;
$custom-light: #7d61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2397",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 252.414,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37118,
    "c": 0.17553,
    "h": 283.2
  },
  "luminance": 0.04366
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3B2397

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

Preview Lab → · Contrast checker → · Palette generator →

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