#3A22A2#3A22A2

#3A22A2 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.190 H 281.0°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#3A22A2
RGBrgb(58, 34, 162)
HSLhsl(251, 65%, 38%)
HSVhsv(251, 79%, 64%)
CMYKcmyk(64.2%, 79%, 0%, 36.5%)
CIE-LABlab(25.72, 46.69, -64.56)
CIE-LCHlch(25.72, 79.67, 305.87°)
OKLaboklab(38.05% 0.0363 -0.1863)
OKLCHoklch(38.05% 0.19 281)
XYZxyz(8.8365, 4.6516, 34.6076)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A22A2 #8AA222
analogous
#224AA2 #3A22A2 #7A22A2
triadic
#3A22A2 #A23A22 #22A23A
tetradic
#3A22A2 #A2224A #8AA222 #22A27A
square
#3A22A2 #A2224A #8AA222 #22A27A
split-complementary
#3A22A2 #A27A22 #4AA222
monochromatic
#160D3D #28176F #3A22A2 #4D2ED3 #7861DE

Accessibility & contrast

On white

10.88
#3A22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3A22A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A22A2
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A22A2#FFFFFF#000000##FFFFFF
##3A22A21.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a22a2;
/* rgb */ color: rgb(58, 34, 162);
/* oklch */ color: oklch(38.0% 0.190 281.0);
Tailwind
colors: {
  custom: {
    50: '#7e61bf',
    500: '#3a22a2',
    950: '#000000',
  },
}
SCSS
$custom: #3a22a2;
$custom-light: #7e61bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3a22a2",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 251.25,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38048,
    "c": 0.18981,
    "h": 281
  },
  "luminance": 0.04652
}

Semantic roles & 50–950 ramp

primary
#3A22A2
secondary
#B0C35D
accent
#E840C9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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