#3C2162#3C2162

#3C2162 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 32.0% C 0.110 H 299.2°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#3C2162
RGBrgb(60, 33, 98)
HSLhsl(265, 50%, 26%)
HSVhsv(265, 66%, 38%)
CMYKcmyk(38.8%, 66.3%, 0%, 61.6%)
CIE-LABlab(19.76, 28.21, -33.90)
CIE-LCHlch(19.76, 44.10, 309.77°)
OKLaboklab(32.04% 0.0538 -0.0964)
OKLCHoklch(32.04% 0.11 299.2)
XYZxyz(4.6114, 2.9302, 11.8755)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2162 #476221
analogous
#212662 #3C2162 #5C2162
triadic
#3C2162 #623C21 #21623C
tetradic
#3C2162 #622126 #476221 #21625C
square
#3C2162 #622126 #476221 #21625C
split-complementary
#3C2162 #625C21 #266221
monochromatic
#0E0817 #201234 #3C2162 #583090 #7440BE

Accessibility & contrast

On white

13.24
#3C2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3C2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2162
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2162#FFFFFF#000000##FFFFFF
##3C21621.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#062F61
Tritanopia (blue-blind)
#342F3E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3c2162;
/* rgb */ color: rgb(60, 33, 98);
/* oklch */ color: oklch(32.0% 0.110 299.2);
Tailwind
colors: {
  custom: {
    50: '#755e8f',
    500: '#3c2162',
    950: '#000000',
  },
}
SCSS
$custom: #3c2162;
$custom-light: #755e8f;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2162",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 264.923,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32043,
    "c": 0.11038,
    "h": 299.2
  },
  "luminance": 0.0293
}

Semantic roles & 50–950 ramp

primary
#3C2162
secondary
#769649
accent
#D94FA0
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040C
muted
#7B797D

Preview Lab

Preview with #3C2162

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

Preview Lab → · Contrast checker → · Palette generator →

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