#3B2398#3B2398

#3B2398 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.177 H 283.1°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#3B2398
RGBrgb(59, 35, 152)
HSLhsl(252, 63%, 37%)
HSVhsv(252, 77%, 60%)
CMYKcmyk(61.2%, 77%, 0%, 40.4%)
CIE-LABlab(24.95, 43.27, -59.72)
CIE-LCHlch(24.95, 73.75, 305.92°)
OKLaboklab(37.22% 0.0399 -0.1722)
OKLCHoklch(37.22% 0.177 283.1)
XYZxyz(8.0704, 4.3983, 30.1234)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B2398 #809823
analogous
#234598 #3B2398 #762398
triadic
#3B2398 #983B23 #23983B
tetradic
#3B2398 #982345 #809823 #239876
square
#3B2398 #982345 #809823 #239876
split-complementary
#3B2398 #987623 #459823
monochromatic
#140C35 #281866 #3B2398 #4E2ECA #765CD9

Accessibility & contrast

On white

11.17
#3B2398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3B2398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B2398
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B2398#FFFFFF#000000##FFFFFF
##3B23981.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b2398;
/* rgb */ color: rgb(59, 35, 152);
/* oklch */ color: oklch(37.2% 0.177 283.1);
Tailwind
colors: {
  custom: {
    50: '#7d61b7',
    500: '#3b2398',
    950: '#000000',
  },
}
SCSS
$custom: #3b2398;
$custom-light: #7d61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3b2398",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 152
  },
  "hsl": {
    "h": 252.308,
    "s": 62.567,
    "l": 36.667
  },
  "oklch": {
    "l": 0.3722,
    "c": 0.17674,
    "h": 283.1
  },
  "luminance": 0.04399
}

Semantic roles & 50–950 ramp

primary
#3B2398
secondary
#A9BE59
accent
#E642C4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3B2398

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

Preview Lab → · Contrast checker → · Palette generator →

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