#3C22A4#3C22A4

#3C22A4 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.192 H 281.6°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#3C22A4
RGBrgb(60, 34, 164)
HSLhsl(252, 66%, 39%)
HSVhsv(252, 79%, 64%)
CMYKcmyk(63.4%, 79.3%, 0%, 35.7%)
CIE-LABlab(26.11, 47.51, -65.12)
CIE-LCHlch(26.11, 80.61, 306.11°)
OKLaboklab(38.43% 0.0387 -0.1879)
OKLCHoklch(38.43% 0.192 281.6)
XYZxyz(9.1342, 4.7844, 35.5569)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C22A4 #8AA422
analogous
#2249A4 #3C22A4 #7D22A4
triadic
#3C22A4 #A43C22 #22A43C
tetradic
#3C22A4 #A42249 #8AA422 #22A47D
square
#3C22A4 #A42249 #8AA422 #22A47D
split-complementary
#3C22A4 #A47D22 #49A422
monochromatic
#170D3F #291771 #3C22A4 #502FD4 #7B62DE

Accessibility & contrast

On white

10.73
#3C22A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3C22A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C22A4
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C22A4#FFFFFF#000000##FFFFFF
##3C22A41.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A8
Deuteranopia (green-blind)
#0039A2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3c22a4;
/* rgb */ color: rgb(60, 34, 164);
/* oklch */ color: oklch(38.4% 0.192 281.6);
Tailwind
colors: {
  custom: {
    50: '#8061c0',
    500: '#3c22a4',
    950: '#000000',
  },
}
SCSS
$custom: #3c22a4;
$custom-light: #8061c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c22a4",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 164
  },
  "hsl": {
    "h": 252,
    "s": 65.657,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3843,
    "c": 0.19183,
    "h": 281.6
  },
  "luminance": 0.04785
}

Semantic roles & 50–950 ramp

primary
#3C22A4
secondary
#AFC45E
accent
#E93FC7
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3C22A4

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

Preview Lab → · Contrast checker → · Palette generator →

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