#3B21AA#3B21AA

#3B21AA is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.200 H 280.4°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#3B21AA
RGBrgb(59, 33, 170)
HSLhsl(251, 67%, 40%)
HSVhsv(251, 81%, 67%)
CMYKcmyk(65.3%, 80.6%, 0%, 33.3%)
CIE-LABlab(26.50, 49.66, -68.10)
CIE-LCHlch(26.50, 84.29, 306.10°)
OKLaboklab(38.87% 0.036 -0.1966)
OKLCHoklch(38.87% 0.2 280.4)
XYZxyz(9.6009, 4.9190, 38.4659)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B21AA #90AA21
analogous
#214BAA #3B21AA #8021AA
triadic
#3B21AA #AA3B21 #21AA3B
tetradic
#3B21AA #AA214B #90AA21 #21AA80
square
#3B21AA #AA214B #90AA21 #21AA80
split-complementary
#3B21AA #AA8021 #4BAA21
monochromatic
#170D43 #291777 #3B21AA #5131D7 #7C64E1

Accessibility & contrast

On white

10.58
#3B21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3B21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B21AA
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B21AA#FFFFFF#000000##FFFFFF
##3B21AA1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AE
Deuteranopia (green-blind)
#0039A8
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3b21aa;
/* rgb */ color: rgb(59, 33, 170);
/* oklch */ color: oklch(38.9% 0.200 280.4);
Tailwind
colors: {
  custom: {
    50: '#8161c5',
    500: '#3b21aa',
    950: '#000000',
  },
}
SCSS
$custom: #3b21aa;
$custom-light: #8161c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b21aa",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 251.387,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38871,
    "c": 0.19985,
    "h": 280.4
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

primary
#3B21AA
secondary
#B3C661
accent
#EA3DCA
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3B21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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