#3A22A4#3A22A4

#3A22A4 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.192 H 280.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#3A22A4
RGBrgb(58, 34, 164)
HSLhsl(251, 66%, 39%)
HSVhsv(251, 79%, 64%)
CMYKcmyk(64.6%, 79.3%, 0%, 35.7%)
CIE-LABlab(25.93, 47.29, -65.42)
CIE-LCHlch(25.93, 80.73, 305.86°)
OKLaboklab(38.26% 0.0357 -0.1888)
OKLCHoklch(38.26% 0.192 280.7)
XYZxyz(9.0157, 4.7232, 35.5513)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22A4 #8CA422
analogous
#224BA4 #3A22A4 #7B22A4
triadic
#3A22A4 #A43A22 #22A43A
tetradic
#3A22A4 #A4224B #8CA422 #22A47B
square
#3A22A4 #A4224B #8CA422 #22A47B
split-complementary
#3A22A4 #A47B22 #4BA422
monochromatic
#160D3F #281771 #3A22A4 #4E2FD4 #7962DE

Accessibility & contrast

On white

10.80
#3A22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A22A4
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22A4#FFFFFF#000000##FFFFFF
##3A22A41.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0038A2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a22a4;
/* rgb */ color: rgb(58, 34, 164);
/* oklch */ color: oklch(38.3% 0.192 280.7);
Tailwind
colors: {
  custom: {
    50: '#7f61c0',
    500: '#3a22a4',
    950: '#000000',
  },
}
SCSS
$custom: #3a22a4;
$custom-light: #7f61c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22a4",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 251.077,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3826,
    "c": 0.19217,
    "h": 280.7
  },
  "luminance": 0.04724
}

Semantic roles & 50–950 ramp

primary
#3A22A4
secondary
#B1C45E
accent
#E93FC9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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