#3B22A2#3B22A2

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

Color values

HEX#3B22A2
RGBrgb(59, 34, 162)
HSLhsl(252, 65%, 38%)
HSVhsv(252, 79%, 64%)
CMYKcmyk(63.6%, 79%, 0%, 36.5%)
CIE-LABlab(25.81, 46.80, -64.41)
CIE-LCHlch(25.81, 79.62, 306.00°)
OKLaboklab(38.13% 0.0378 -0.1858)
OKLCHoklch(38.13% 0.19 281.5)
XYZxyz(8.8952, 4.6818, 34.6104)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B22A2 #89A222
analogous
#2249A2 #3B22A2 #7B22A2
triadic
#3B22A2 #A23B22 #22A23B
tetradic
#3B22A2 #A22249 #89A222 #22A27B
square
#3B22A2 #A22249 #89A222 #22A27B
split-complementary
#3B22A2 #A27B22 #49A222
monochromatic
#160D3D #29176F #3B22A2 #4E2ED3 #7961DE

Accessibility & contrast

On white

10.84
#3B22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B22A2
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B22A2#FFFFFF#000000##FFFFFF
##3B22A21.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.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: #3b22a2;
/* rgb */ color: rgb(59, 34, 162);
/* oklch */ color: oklch(38.1% 0.190 281.5);
Tailwind
colors: {
  custom: {
    50: '#7f61bf',
    500: '#3b22a2',
    950: '#000000',
  },
}
SCSS
$custom: #3b22a2;
$custom-light: #7f61bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3b22a2",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 251.719,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38133,
    "c": 0.18964,
    "h": 281.5
  },
  "luminance": 0.04682
}

Semantic roles & 50–950 ramp

primary
#3B22A2
secondary
#AFC35D
accent
#E840C7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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