#3C1166#3C1166

#3C1166 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.137 H 301.3°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#3C1166
RGBrgb(60, 17, 102)
HSLhsl(270, 71%, 23%)
HSVhsv(270, 83%, 40%)
CMYKcmyk(41.2%, 83.3%, 0%, 60%)
CIE-LABlab(17.09, 37.74, -40.88)
CIE-LCHlch(17.09, 55.64, 312.72°)
OKLaboklab(30.25% 0.0709 -0.1168)
OKLCHoklch(30.25% 0.137 301.3)
XYZxyz(4.4616, 2.3208, 12.7807)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1166 #3B6611
analogous
#111166 #3C1166 #661165
triadic
#3C1166 #663C11 #11663C
tetradic
#3C1166 #661111 #3B6611 #116566
square
#3C1166 #661111 #3B6611 #116566
split-complementary
#3C1166 #656611 #116611
monochromatic
#0F041A #1D0832 #3C1166 #5B1A9A #7A22CF

Accessibility & contrast

On white

14.34
#3C1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3C1166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1166
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1166#FFFFFF#000000##FFFFFF
##3C11661.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#33283C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3c1166;
/* rgb */ color: rgb(60, 17, 102);
/* oklch */ color: oklch(30.2% 0.137 301.3);
Tailwind
colors: {
  custom: {
    50: '#775592',
    500: '#3c1166',
    950: '#000000',
  },
}
SCSS
$custom: #3c1166;
$custom-light: #775592;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1166",
  "rgb": {
    "r": 60,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 270.353,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30245,
    "c": 0.13661,
    "h": 301.3
  },
  "luminance": 0.02321
}

Semantic roles & 50–950 ramp

primary
#3C1166
secondary
#699E35
accent
#EE3A93
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3C1166

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

Preview Lab → · Contrast checker → · Palette generator →

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