#3A21A2#3A21A2

#3A21A2 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.191 H 281.1°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#3A21A2
RGBrgb(58, 33, 162)
HSLhsl(252, 66%, 38%)
HSVhsv(252, 80%, 64%)
CMYKcmyk(64.2%, 79.6%, 0%, 36.5%)
CIE-LABlab(25.55, 47.18, -64.84)
CIE-LCHlch(25.55, 80.19, 306.04°)
OKLaboklab(37.93% 0.0369 -0.1871)
OKLCHoklch(37.93% 0.191 281.1)
XYZxyz(8.8083, 4.5952, 34.5982)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A21A2 #89A221
analogous
#2148A2 #3A21A2 #7A21A2
triadic
#3A21A2 #A23A21 #21A23A
tetradic
#3A21A2 #A22148 #89A221 #21A27A
square
#3A21A2 #A22148 #89A221 #21A27A
split-complementary
#3A21A2 #A27A21 #48A221
monochromatic
#160C3C #28176F #3A21A2 #4D2CD4 #785FDE

Accessibility & contrast

On white

10.94
#3A21A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3A21A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A21A2
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A21A2#FFFFFF#000000##FFFFFF
##3A21A21.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#0038A0
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a21a2;
/* rgb */ color: rgb(58, 33, 162);
/* oklch */ color: oklch(37.9% 0.191 281.1);
Tailwind
colors: {
  custom: {
    50: '#7f61bf',
    500: '#3a21a2',
    950: '#000000',
  },
}
SCSS
$custom: #3a21a2;
$custom-light: #7f61bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a21a2",
  "rgb": {
    "r": 58,
    "g": 33,
    "b": 162
  },
  "hsl": {
    "h": 251.628,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3793,
    "c": 0.19071,
    "h": 281.1
  },
  "luminance": 0.04596
}

Semantic roles & 50–950 ramp

primary
#3A21A2
secondary
#AFC35C
accent
#E93FC8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A21A2

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

Preview Lab → · Contrast checker → · Palette generator →

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