#3C1A7A#3C1A7A

#3C1A7A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.150 H 292.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#3C1A7A
RGBrgb(60, 26, 122)
HSLhsl(261, 65%, 29%)
HSVhsv(261, 79%, 48%)
CMYKcmyk(50.8%, 78.7%, 0%, 52.2%)
CIE-LABlab(20.46, 39.08, -48.32)
CIE-LCHlch(20.46, 62.15, 308.96°)
OKLaboklab(33.19% 0.0569 -0.1387)
OKLCHoklch(33.19% 0.15 292.3)
XYZxyz(5.7447, 3.1044, 18.7051)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1A7A #587A1A
analogous
#1A287A #3C1A7A #6C1A7A
triadic
#3C1A7A #7A3C1A #1A7A3C
tetradic
#3C1A7A #7A1A28 #587A1A #1A7A6C
square
#3C1A7A #7A1A28 #587A1A #1A7A6C
split-complementary
#3C1A7A #7A6C1A #287A1A
monochromatic
#0C0519 #230F48 #3C1A7A #5525AC #7139D5

Accessibility & contrast

On white

12.95
#3C1A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3C1A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1A7A
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1A7A#FFFFFF#000000##FFFFFF
##3C1A7A1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#283449
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3c1a7a;
/* rgb */ color: rgb(60, 26, 122);
/* oklch */ color: oklch(33.2% 0.150 292.3);
Tailwind
colors: {
  custom: {
    50: '#795ba1',
    500: '#3c1a7a',
    950: '#000000',
  },
}
SCSS
$custom: #3c1a7a;
$custom-light: #795ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1a7a",
  "rgb": {
    "r": 60,
    "g": 26,
    "b": 122
  },
  "hsl": {
    "h": 261.25,
    "s": 64.865,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33189,
    "c": 0.14994,
    "h": 292.3
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#3C1A7A
secondary
#88AE41
accent
#E840AC
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C1A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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