#3B21AE#3B21AE

#3B21AE is a dark, highly saturated violet. Relative luminance 0.051; OKLCH L 39.3% C 0.204 H 279.8°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#3B21AE
RGBrgb(59, 33, 174)
HSLhsl(251, 68%, 41%)
HSVhsv(251, 81%, 68%)
CMYKcmyk(66.1%, 81%, 0%, 31.8%)
CIE-LABlab(26.94, 50.83, -69.79)
CIE-LCHlch(26.94, 86.34, 306.07°)
OKLaboklab(39.3% 0.0347 -0.2015)
OKLCHoklch(39.3% 0.204 279.8)
XYZxyz(9.9850, 5.0727, 40.4891)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B21AE #94AE21
analogous
#214DAE #3B21AE #8121AE
triadic
#3B21AE #AE3B21 #21AE3B
tetradic
#3B21AE #AE214D #94AE21 #21AE81
square
#3B21AE #AE214D #94AE21 #21AE81
split-complementary
#3B21AE #AE8121 #4DAE21
monochromatic
#180D47 #2A177B #3B21AE #5234D8 #7E67E2

Accessibility & contrast

On white

10.42
#3B21AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3B21AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B21AE
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B21AE#FFFFFF#000000##FFFFFF
##3B21AE1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B2
Deuteranopia (green-blind)
#003AAC
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3b21ae;
/* rgb */ color: rgb(59, 33, 174);
/* oklch */ color: oklch(39.3% 0.204 279.8);
Tailwind
colors: {
  custom: {
    50: '#8161c8',
    500: '#3b21ae',
    950: '#000000',
  },
}
SCSS
$custom: #3b21ae;
$custom-light: #8161c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3b21ae",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 174
  },
  "hsl": {
    "h": 251.064,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39303,
    "c": 0.20445,
    "h": 279.8
  },
  "luminance": 0.05074
}

Semantic roles & 50–950 ramp

primary
#3B21AE
secondary
#B5C863
accent
#EB3DCB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3B21AE

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

Preview Lab → · Contrast checker → · Palette generator →

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