#3A21B2#3A21B2

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

Color values

HEX#3A21B2
RGBrgb(58, 33, 178)
HSLhsl(250, 69%, 41%)
HSVhsv(250, 81%, 70%)
CMYKcmyk(67.4%, 81.5%, 0%, 30.2%)
CIE-LABlab(27.30, 51.92, -71.59)
CIE-LCHlch(27.30, 88.43, 305.95°)
OKLaboklab(39.66% 0.0321 -0.2068)
OKLCHoklch(39.66% 0.209 278.8)
XYZxyz(10.3221, 5.2007, 42.5707)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A21B2 #99B221
analogous
#2151B2 #3A21B2 #8321B2
triadic
#3A21B2 #B23A21 #21B23A
tetradic
#3A21B2 #B22151 #99B221 #21B283
square
#3A21B2 #B22151 #99B221 #21B283
split-complementary
#3A21B2 #B28321 #51B221
monochromatic
#180E4B #29177E #3A21B2 #5336DA #7F6AE3

Accessibility & contrast

On white

10.29
#3A21B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3A21B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A21B2
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A21B2#FFFFFF#000000##FFFFFF
##3A21B21.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a21b2;
/* rgb */ color: rgb(58, 33, 178);
/* oklch */ color: oklch(39.7% 0.209 278.8);
Tailwind
colors: {
  custom: {
    50: '#8262ca',
    500: '#3a21b2',
    950: '#000000',
  },
}
SCSS
$custom: #3a21b2;
$custom-light: #8262ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3a21b2",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 250.345,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.3966,
    "c": 0.20923,
    "h": 278.8
  },
  "luminance": 0.05202
}

Semantic roles & 50–950 ramp

primary
#3A21B2
secondary
#B8C966
accent
#EC3CCD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3A21B2

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

Preview Lab → · Contrast checker → · Palette generator →

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