#3A22A1#3A22A1

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

Color values

HEX#3A22A1
RGBrgb(58, 34, 161)
HSLhsl(251, 65%, 38%)
HSVhsv(251, 79%, 63%)
CMYKcmyk(64%, 78.9%, 0%, 36.9%)
CIE-LABlab(25.61, 46.39, -64.13)
CIE-LCHlch(25.61, 79.15, 305.88°)
OKLaboklab(37.94% 0.0366 -0.185)
OKLCHoklch(37.94% 0.189 281.2)
XYZxyz(8.7479, 4.6161, 34.1413)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22A1 #89A122
analogous
#2249A1 #3A22A1 #7922A1
triadic
#3A22A1 #A13A22 #22A13A
tetradic
#3A22A1 #A12249 #89A122 #22A179
square
#3A22A1 #A12249 #89A122 #22A179
split-complementary
#3A22A1 #A17922 #49A122
monochromatic
#160D3C #28176E #3A22A1 #4D2DD3 #7860DD

Accessibility & contrast

On white

10.92
#3A22A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A22A1
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22A1#FFFFFF#000000##FFFFFF
##3A22A11.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A5
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a22a1;
/* rgb */ color: rgb(58, 34, 161);
/* oklch */ color: oklch(37.9% 0.189 281.2);
Tailwind
colors: {
  custom: {
    50: '#7e61be',
    500: '#3a22a1',
    950: '#000000',
  },
}
SCSS
$custom: #3a22a1;
$custom-light: #7e61be;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22a1",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 161
  },
  "hsl": {
    "h": 251.339,
    "s": 65.128,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37942,
    "c": 0.18863,
    "h": 281.2
  },
  "luminance": 0.04617
}

Semantic roles & 50–950 ramp

primary
#3A22A1
secondary
#AFC25D
accent
#E840C8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A22A1

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

Preview Lab → · Contrast checker → · Palette generator →

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