#3B21BA#3B21BA

#3B21BA is a dark, highly saturated violet. Relative luminance 0.056; OKLCH L 40.6% C 0.218 H 278.2°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#3B21BA
RGBrgb(59, 33, 186)
HSLhsl(250, 70%, 43%)
HSVhsv(250, 82%, 73%)
CMYKcmyk(68.3%, 82.3%, 0%, 27.1%)
CIE-LABlab(28.28, 54.33, -74.73)
CIE-LCHlch(28.28, 92.39, 306.02°)
OKLaboklab(40.62% 0.0311 -0.2159)
OKLCHoklch(40.62% 0.218 278.2)
XYZxyz(11.2076, 5.5617, 46.9277)
Luminance0.0556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B21BA #A0BA21
analogous
#2153BA #3B21BA #8721BA
triadic
#3B21BA #BA3B21 #21BA3B
tetradic
#3B21BA #BA2153 #A0BA21 #21BA87
square
#3B21BA #BA2153 #A0BA21 #21BA87
split-complementary
#3B21BA #BA8721 #53BA21
monochromatic
#1A0F52 #2B1886 #3B21BA #573CDC #8470E6

Accessibility & contrast

On white

9.94
#3B21BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#3B21BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B21BA
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B21BA#FFFFFF#000000##FFFFFF
##3B21BA1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048BE
Deuteranopia (green-blind)
#003CB7
Tritanopia (blue-blind)
#00516F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3b21ba;
/* rgb */ color: rgb(59, 33, 186);
/* oklch */ color: oklch(40.6% 0.218 278.2);
Tailwind
colors: {
  custom: {
    50: '#8462d0',
    500: '#3b21ba',
    950: '#000000',
  },
}
SCSS
$custom: #3b21ba;
$custom-light: #8462d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b21ba",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 186
  },
  "hsl": {
    "h": 250.196,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40619,
    "c": 0.21808,
    "h": 278.2
  },
  "luminance": 0.05563
}

Semantic roles & 50–950 ramp

primary
#3B21BA
secondary
#BCCC6B
accent
#ED3BCE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0514
muted
#7D7A83

Preview Lab

Preview with #3B21BA

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

Preview Lab → · Contrast checker → · Palette generator →

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