#3A21AA#3A21AA

#3A21AA is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 38.8% C 0.200 H 279.9°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#3A21AA
RGBrgb(58, 33, 170)
HSLhsl(251, 67%, 40%)
HSVhsv(251, 81%, 67%)
CMYKcmyk(65.9%, 80.6%, 0%, 33.3%)
CIE-LABlab(26.42, 49.56, -68.25)
CIE-LCHlch(26.42, 84.35, 305.98°)
OKLaboklab(38.79% 0.0345 -0.197)
OKLCHoklch(38.79% 0.2 279.9)
XYZxyz(9.5422, 4.8888, 38.4632)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A21AA #91AA21
analogous
#214CAA #3A21AA #7F21AA
triadic
#3A21AA #AA3A21 #21AA3A
tetradic
#3A21AA #AA214C #91AA21 #21AA7F
square
#3A21AA #AA214C #91AA21 #21AA7F
split-complementary
#3A21AA #AA7F21 #4CAA21
monochromatic
#170D43 #291777 #3A21AA #4F31D7 #7B64E1

Accessibility & contrast

On white

10.62
#3A21AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3A21AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A21AA
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A21AA#FFFFFF#000000##FFFFFF
##3A21AA1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AE
Deuteranopia (green-blind)
#0039A8
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a21aa;
/* rgb */ color: rgb(58, 33, 170);
/* oklch */ color: oklch(38.8% 0.200 279.9);
Tailwind
colors: {
  custom: {
    50: '#8061c5',
    500: '#3a21aa',
    950: '#000000',
  },
}
SCSS
$custom: #3a21aa;
$custom-light: #8061c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a21aa",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 170
  },
  "hsl": {
    "h": 250.949,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38789,
    "c": 0.20003,
    "h": 279.9
  },
  "luminance": 0.0489
}

Semantic roles & 50–950 ramp

primary
#3A21AA
secondary
#B4C661
accent
#EA3DCB
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3A21AA

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

Preview Lab → · Contrast checker → · Palette generator →

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