#3C22A2#3C22A2

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

Color values

HEX#3C22A2
RGBrgb(60, 34, 162)
HSLhsl(252, 65%, 38%)
HSVhsv(252, 79%, 64%)
CMYKcmyk(63%, 79%, 0%, 36.5%)
CIE-LABlab(25.90, 46.91, -64.26)
CIE-LCHlch(25.90, 79.56, 306.13°)
OKLaboklab(38.22% 0.0393 -0.1854)
OKLCHoklch(38.22% 0.189 282)
XYZxyz(8.9551, 4.7127, 34.6132)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C22A2 #88A222
analogous
#2248A2 #3C22A2 #7C22A2
triadic
#3C22A2 #A23C22 #22A23C
tetradic
#3C22A2 #A22248 #88A222 #22A27C
square
#3C22A2 #A22248 #88A222 #22A27C
split-complementary
#3C22A2 #A27C22 #48A222
monochromatic
#170D3D #29176F #3C22A2 #502ED3 #7A61DE

Accessibility & contrast

On white

10.81
#3C22A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C22A2
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C22A2#FFFFFF#000000##FFFFFF
##3C22A21.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c22a2;
/* rgb */ color: rgb(60, 34, 162);
/* oklch */ color: oklch(38.2% 0.189 282.0);
Tailwind
colors: {
  custom: {
    50: '#7f61bf',
    500: '#3c22a2',
    950: '#000000',
  },
}
SCSS
$custom: #3c22a2;
$custom-light: #7f61bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3c22a2",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 162
  },
  "hsl": {
    "h": 252.188,
    "s": 65.306,
    "l": 38.431
  },
  "oklch": {
    "l": 0.3822,
    "c": 0.18948,
    "h": 282
  },
  "luminance": 0.04713
}

Semantic roles & 50–950 ramp

primary
#3C22A2
secondary
#AEC35D
accent
#E840C6
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3C22A2

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

Preview Lab → · Contrast checker → · Palette generator →

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