#3C1162#3C1162

#3C1162 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.9% C 0.132 H 303.0°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#3C1162
RGBrgb(60, 17, 98)
HSLhsl(272, 70%, 23%)
HSVhsv(272, 83%, 38%)
CMYKcmyk(38.8%, 82.7%, 0%, 61.6%)
CIE-LABlab(16.72, 36.70, -38.84)
CIE-LCHlch(16.72, 53.44, 313.38°)
OKLaboklab(29.87% 0.0721 -0.1108)
OKLCHoklch(29.87% 0.132 303)
XYZxyz(4.2680, 2.2434, 11.7611)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1162 #376211
analogous
#141162 #3C1162 #62115F
triadic
#3C1162 #623C11 #11623C
tetradic
#3C1162 #621411 #376211 #115F62
square
#3C1162 #621411 #376211 #115F62
split-complementary
#3C1162 #5F6211 #116214
monochromatic
#10051A #1C082E #3C1162 #5C1A96 #7C23CA

Accessibility & contrast

On white

14.50
#3C1162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3C1162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1162
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1162#FFFFFF#000000##FFFFFF
##3C11621.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002960
Tritanopia (blue-blind)
#342639
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3c1162;
/* rgb */ color: rgb(60, 17, 98);
/* oklch */ color: oklch(29.9% 0.132 303.0);
Tailwind
colors: {
  custom: {
    50: '#76558f',
    500: '#3c1162',
    950: '#000000',
  },
}
SCSS
$custom: #3c1162;
$custom-light: #76558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1162",
  "rgb": {
    "r": 60,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 271.852,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.2987,
    "c": 0.13219,
    "h": 303
  },
  "luminance": 0.02243
}

Semantic roles & 50–950 ramp

primary
#3C1162
secondary
#649A34
accent
#ED3B8E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3C1162

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

Preview Lab → · Contrast checker → · Palette generator →

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