#3A22A3#3A22A3

#3A22A3 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.191 H 280.9°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#3A22A3
RGBrgb(58, 34, 163)
HSLhsl(251, 65%, 39%)
HSVhsv(251, 79%, 64%)
CMYKcmyk(64.4%, 79.1%, 0%, 36.1%)
CIE-LABlab(25.82, 46.99, -64.99)
CIE-LCHlch(25.82, 80.20, 305.87°)
OKLaboklab(38.15% 0.036 -0.1876)
OKLCHoklch(38.15% 0.191 280.9)
XYZxyz(8.9257, 4.6873, 35.0776)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22A3 #8BA322
analogous
#224AA3 #3A22A3 #7A22A3
triadic
#3A22A3 #A33A22 #22A33A
tetradic
#3A22A3 #A3224A #8BA322 #22A37A
square
#3A22A3 #A3224A #8BA322 #22A37A
split-complementary
#3A22A3 #A37A22 #4AA322
monochromatic
#160D3E #281770 #3A22A3 #4D2FD4 #7961DE

Accessibility & contrast

On white

10.84
#3A22A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3A22A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A22A3
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22A3#FFFFFF#000000##FFFFFF
##3A22A31.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#0038A1
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a22a3;
/* rgb */ color: rgb(58, 34, 163);
/* oklch */ color: oklch(38.2% 0.191 280.9);
Tailwind
colors: {
  custom: {
    50: '#7f61c0',
    500: '#3a22a3',
    950: '#000000',
  },
}
SCSS
$custom: #3a22a3;
$custom-light: #7f61c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22a3",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 251.163,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38154,
    "c": 0.19099,
    "h": 280.9
  },
  "luminance": 0.04688
}

Semantic roles & 50–950 ramp

primary
#3A22A3
secondary
#B0C35E
accent
#E83FC9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A22A3

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

Preview Lab → · Contrast checker → · Palette generator →

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