#3B2193#3B2193

#3B2193 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.173 H 284.3°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#3B2193
RGBrgb(59, 33, 147)
HSLhsl(254, 63%, 35%)
HSVhsv(254, 78%, 58%)
CMYKcmyk(59.9%, 77.6%, 0%, 42.4%)
CIE-LABlab(24.08, 42.78, -58.08)
CIE-LCHlch(24.08, 72.13, 306.38°)
OKLaboklab(36.46% 0.0427 -0.1673)
OKLCHoklch(36.46% 0.173 284.3)
XYZxyz(7.6123, 4.1236, 27.9929)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2193 #799321
analogous
#214093 #3B2193 #742193
triadic
#3B2193 #933B21 #21933B
tetradic
#3B2193 #932140 #799321 #219374
square
#3B2193 #932140 #799321 #219374
split-complementary
#3B2193 #937421 #409321
monochromatic
#130B2F #271661 #3B2193 #4F2CC5 #7355D9

Accessibility & contrast

On white

11.51
#3B2193 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3B2193 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B2193
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2193#FFFFFF#000000##FFFFFF
##3B21931.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003691
Tritanopia (blue-blind)
#054259
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b2193;
/* rgb */ color: rgb(59, 33, 147);
/* oklch */ color: oklch(36.5% 0.173 284.3);
Tailwind
colors: {
  custom: {
    50: '#7c60b4',
    500: '#3b2193',
    950: '#000000',
  },
}
SCSS
$custom: #3b2193;
$custom-light: #7c60b4;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2193",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 147
  },
  "hsl": {
    "h": 253.684,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36456,
    "c": 0.1727,
    "h": 284.3
  },
  "luminance": 0.04124
}

Semantic roles & 50–950 ramp

primary
#3B2193
secondary
#A5BD53
accent
#E641C1
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3B2193

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

Preview Lab → · Contrast checker → · Palette generator →

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