#3C1168#3C1168

#3C1168 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.139 H 300.4°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#3C1168
RGBrgb(60, 17, 104)
HSLhsl(270, 72%, 24%)
HSVhsv(270, 84%, 41%)
CMYKcmyk(42.3%, 83.7%, 0%, 59.2%)
CIE-LABlab(17.28, 38.27, -41.88)
CIE-LCHlch(17.28, 56.73, 312.42°)
OKLaboklab(30.44% 0.0703 -0.1197)
OKLCHoklch(30.44% 0.139 300.4)
XYZxyz(4.5620, 2.3610, 13.3094)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1168 #3D6811
analogous
#111168 #3C1168 #671168
triadic
#3C1168 #683C11 #11683C
tetradic
#3C1168 #681111 #3D6811 #116867
square
#3C1168 #681111 #3D6811 #116867
split-complementary
#3C1168 #686711 #116811
monochromatic
#0F041A #1E0833 #3C1168 #5A1A9D #7922D1

Accessibility & contrast

On white

14.26
#3C1168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3C1168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1168
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1168#FFFFFF#000000##FFFFFF
##3C11681.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#32293D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3c1168;
/* rgb */ color: rgb(60, 17, 104);
/* oklch */ color: oklch(30.4% 0.139 300.4);
Tailwind
colors: {
  custom: {
    50: '#775594',
    500: '#3c1168',
    950: '#000000',
  },
}
SCSS
$custom: #3c1168;
$custom-light: #775594;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1168",
  "rgb": {
    "r": 60,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 269.655,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30436,
    "c": 0.13882,
    "h": 300.4
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#3C1168
secondary
#6BA035
accent
#EF3995
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3C1168

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

Preview Lab → · Contrast checker → · Palette generator →

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