#3B21B2#3B21B2

#3B21B2 is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.7% C 0.209 H 279.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#3B21B2
RGBrgb(59, 33, 178)
HSLhsl(251, 69%, 41%)
HSVhsv(251, 81%, 70%)
CMYKcmyk(66.9%, 81.5%, 0%, 30.2%)
CIE-LABlab(27.38, 52.01, -71.45)
CIE-LCHlch(27.38, 88.37, 306.05°)
OKLaboklab(39.74% 0.0335 -0.2063)
OKLCHoklch(39.74% 0.209 279.2)
XYZxyz(10.3808, 5.2310, 42.5735)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B21B2 #98B221
analogous
#2150B2 #3B21B2 #8421B2
triadic
#3B21B2 #B23B21 #21B23B
tetradic
#3B21B2 #B22150 #98B221 #21B284
square
#3B21B2 #B22150 #98B221 #21B284
split-complementary
#3B21B2 #B28421 #50B221
monochromatic
#190E4B #2A177E #3B21B2 #5436DA #806AE3

Accessibility & contrast

On white

10.26
#3B21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#3B21B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B21B2
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B21B2#FFFFFF#000000##FFFFFF
##3B21B21.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B6
Deuteranopia (green-blind)
#003BB0
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3b21b2;
/* rgb */ color: rgb(59, 33, 178);
/* oklch */ color: oklch(39.7% 0.209 279.2);
Tailwind
colors: {
  custom: {
    50: '#8262ca',
    500: '#3b21b2',
    950: '#000000',
  },
}
SCSS
$custom: #3b21b2;
$custom-light: #8262ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3b21b2",
  "rgb": {
    "r": 59,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 250.759,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39739,
    "c": 0.20903,
    "h": 279.2
  },
  "luminance": 0.05232
}

Semantic roles & 50–950 ramp

primary
#3B21B2
secondary
#B7C966
accent
#EC3CCC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3B21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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