#3B21BD#3B21BD

#3B21BD is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 41.0% C 0.221 H 277.8°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#3B21BD
RGBrgb(59, 33, 189)
HSLhsl(250, 70%, 44%)
HSVhsv(250, 83%, 74%)
CMYKcmyk(68.8%, 82.5%, 0%, 25.9%)
CIE-LABlab(28.62, 55.19, -75.94)
CIE-LCHlch(28.62, 93.88, 306.01°)
OKLaboklab(40.95% 0.0301 -0.2194)
OKLCHoklch(40.95% 0.221 277.8)
XYZxyz(11.5298, 5.6906, 48.6250)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B21BD #A3BD21
analogous
#2155BD #3B21BD #8921BD
triadic
#3B21BD #BD3B21 #21BD3B
tetradic
#3B21BD #BD2155 #A3BD21 #21BD89
square
#3B21BD #BD2155 #A3BD21 #21BD89
split-complementary
#3B21BD #BD8921 #55BD21
monochromatic
#1A0F55 #2B1889 #3B21BD #583EDD #8572E6

Accessibility & contrast

On white

9.82
#3B21BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#3B21BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B21BD
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B21BD#FFFFFF#000000##FFFFFF
##3B21BD1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049C1
Deuteranopia (green-blind)
#003DBA
Tritanopia (blue-blind)
#005371
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3b21bd;
/* rgb */ color: rgb(59, 33, 189);
/* oklch */ color: oklch(41.0% 0.221 277.8);
Tailwind
colors: {
  custom: {
    50: '#8562d2',
    500: '#3b21bd',
    950: '#000000',
  },
}
SCSS
$custom: #3b21bd;
$custom-light: #8562d2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b21bd",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 189
  },
  "hsl": {
    "h": 250,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40952,
    "c": 0.22144,
    "h": 277.8
  },
  "luminance": 0.05692
}

Semantic roles & 50–950 ramp

primary
#3B21BD
secondary
#BDCD6D
accent
#ED3BCF
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0514
muted
#7E7A83

Preview Lab

Preview with #3B21BD

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

Preview Lab → · Contrast checker → · Palette generator →

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