#3B22A3#3B22A3

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

Color values

HEX#3B22A3
RGBrgb(59, 34, 163)
HSLhsl(252, 65%, 39%)
HSVhsv(252, 79%, 64%)
CMYKcmyk(63.8%, 79.1%, 0%, 36.1%)
CIE-LABlab(25.91, 47.10, -64.84)
CIE-LCHlch(25.91, 80.14, 305.99°)
OKLaboklab(38.24% 0.0375 -0.1871)
OKLCHoklch(38.24% 0.191 281.3)
XYZxyz(8.9844, 4.7175, 35.0804)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B22A3 #8AA322
analogous
#2249A3 #3B22A3 #7B22A3
triadic
#3B22A3 #A33B22 #22A33B
tetradic
#3B22A3 #A32249 #8AA322 #22A37B
square
#3B22A3 #A32249 #8AA322 #22A37B
split-complementary
#3B22A3 #A37B22 #49A322
monochromatic
#160D3E #291770 #3B22A3 #4F2FD4 #7961DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3B22A3#FFFFFF#000000##FFFFFF
##3B22A31.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)
#0042A7
Deuteranopia (green-blind)
#0039A1
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3b22a3;
/* rgb */ color: rgb(59, 34, 163);
/* oklch */ color: oklch(38.2% 0.191 281.3);
Tailwind
colors: {
  custom: {
    50: '#7f61c0',
    500: '#3b22a3',
    950: '#000000',
  },
}
SCSS
$custom: #3b22a3;
$custom-light: #7f61c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b22a3",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 163
  },
  "hsl": {
    "h": 251.628,
    "s": 65.482,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38239,
    "c": 0.19082,
    "h": 281.3
  },
  "luminance": 0.04718
}

Semantic roles & 50–950 ramp

primary
#3B22A3
secondary
#AFC35E
accent
#E83FC8
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B22A3

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

Preview Lab → · Contrast checker → · Palette generator →

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