#3B2197#3B2197

#3B2197 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.178 H 283.5°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#3B2197
RGBrgb(59, 33, 151)
HSLhsl(253, 64%, 36%)
HSVhsv(253, 78%, 59%)
CMYKcmyk(60.9%, 78.1%, 0%, 40.8%)
CIE-LABlab(24.49, 43.99, -59.87)
CIE-LCHlch(24.49, 74.29, 306.31°)
OKLaboklab(36.87% 0.0416 -0.1726)
OKLCHoklch(36.87% 0.178 283.5)
XYZxyz(7.9317, 4.2514, 29.6748)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2197 #7D9721
analogous
#214297 #3B2197 #762197
triadic
#3B2197 #973B21 #21973B
tetradic
#3B2197 #972142 #7D9721 #219776
square
#3B2197 #972142 #7D9721 #219776
split-complementary
#3B2197 #977621 #429721
monochromatic
#140B33 #271665 #3B2197 #4F2CC9 #7558DA

Accessibility & contrast

On white

11.35
#3B2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3B2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B2197
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2197#FFFFFF#000000##FFFFFF
##3B21971.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.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: #3b2197;
/* rgb */ color: rgb(59, 33, 151);
/* oklch */ color: oklch(36.9% 0.178 283.5);
Tailwind
colors: {
  custom: {
    50: '#7d60b7',
    500: '#3b2197',
    950: '#000000',
  },
}
SCSS
$custom: #3b2197;
$custom-light: #7d60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2197",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 253.22,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36866,
    "c": 0.17751,
    "h": 283.5
  },
  "luminance": 0.04252
}

Semantic roles & 50–950 ramp

primary
#3B2197
secondary
#A7BE55
accent
#E741C2
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3B2197

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

Preview Lab → · Contrast checker → · Palette generator →

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