#3A22A5#3A22A5

#3A22A5 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.193 H 280.6°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#3A22A5
RGBrgb(58, 34, 165)
HSLhsl(251, 66%, 39%)
HSVhsv(251, 79%, 65%)
CMYKcmyk(64.8%, 79.4%, 0%, 35.3%)
CIE-LABlab(26.04, 47.59, -65.85)
CIE-LCHlch(26.04, 81.25, 305.85°)
OKLaboklab(38.37% 0.0354 -0.1901)
OKLCHoklch(38.37% 0.193 280.6)
XYZxyz(9.1063, 4.7595, 36.0288)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22A5 #8DA522
analogous
#224CA5 #3A22A5 #7C22A5
triadic
#3A22A5 #A53A22 #22A53A
tetradic
#3A22A5 #A5224C #8DA522 #22A57C
square
#3A22A5 #A5224C #8DA522 #22A57C
split-complementary
#3A22A5 #A57C22 #4CA522
monochromatic
#160D40 #281872 #3A22A5 #4E30D4 #7963DF

Accessibility & contrast

On white

10.76
#3A22A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3A22A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A22A5
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22A5#FFFFFF#000000##FFFFFF
##3A22A51.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0039A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3a22a5;
/* rgb */ color: rgb(58, 34, 165);
/* oklch */ color: oklch(38.4% 0.193 280.6);
Tailwind
colors: {
  custom: {
    50: '#7f61c1',
    500: '#3a22a5',
    950: '#000000',
  },
}
SCSS
$custom: #3a22a5;
$custom-light: #7f61c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22a5",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 165
  },
  "hsl": {
    "h": 250.992,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38366,
    "c": 0.19334,
    "h": 280.6
  },
  "luminance": 0.0476
}

Semantic roles & 50–950 ramp

primary
#3A22A5
secondary
#B1C45F
accent
#E93FCA
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A22A5

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

Preview Lab → · Contrast checker → · Palette generator →

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