#3B2172#3B2172

#3B2172 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.131 H 292.5°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#3B2172
RGBrgb(59, 33, 114)
HSLhsl(259, 55%, 29%)
HSVhsv(259, 71%, 45%)
CMYKcmyk(48.2%, 71.1%, 0%, 55.3%)
CIE-LABlab(20.95, 32.75, -42.39)
CIE-LCHlch(20.95, 53.57, 307.69°)
OKLaboklab(33.28% 0.0504 -0.1214)
OKLCHoklch(33.28% 0.131 292.5)
XYZxyz(5.3839, 3.2323, 16.2565)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2172 #587221
analogous
#213072 #3B2172 #642172
triadic
#3B2172 #723B21 #21723B
tetradic
#3B2172 #722130 #587221 #217264
square
#3B2172 #722130 #587221 #217264
split-complementary
#3B2172 #726421 #307221
monochromatic
#0C0718 #221343 #3B2172 #542FA1 #6F44C9

Accessibility & contrast

On white

12.76
#3B2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3B2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B2172
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2172#FFFFFF#000000##FFFFFF
##3B21721.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#2B3546
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3b2172;
/* rgb */ color: rgb(59, 33, 114);
/* oklch */ color: oklch(33.3% 0.131 292.5);
Tailwind
colors: {
  custom: {
    50: '#765e9b',
    500: '#3b2172',
    950: '#000000',
  },
}
SCSS
$custom: #3b2172;
$custom-light: #765e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2172",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 259.259,
    "s": 55.102,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33285,
    "c": 0.1314,
    "h": 292.5
  },
  "luminance": 0.03232
}

Semantic roles & 50–950 ramp

primary
#3B2172
secondary
#88A549
accent
#DE49AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3B2172

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

Preview Lab → · Contrast checker → · Palette generator →

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