#3C2182#3C2182

#3C2182 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.152 H 288.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#3C2182
RGBrgb(60, 33, 130)
HSLhsl(257, 60%, 32%)
HSVhsv(257, 75%, 51%)
CMYKcmyk(53.8%, 74.6%, 0%, 49%)
CIE-LABlab(22.51, 37.78, -50.03)
CIE-LCHlch(22.51, 62.69, 307.06°)
OKLaboklab(34.87% 0.0487 -0.1437)
OKLCHoklch(34.87% 0.152 288.7)
XYZxyz(6.4354, 3.6598, 21.4821)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2182 #678221
analogous
#213782 #3C2182 #6D2182
triadic
#3C2182 #823C21 #21823C
tetradic
#3C2182 #822137 #678221 #21826D
square
#3C2182 #822137 #678221 #21826D
split-complementary
#3C2182 #826D21 #378221
monochromatic
#0F0820 #251551 #3C2182 #532DB3 #714CD2

Accessibility & contrast

On white

12.12
#3C2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3C2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2182
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2182#FFFFFF#000000##FFFFFF
##3C21821.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003380
Tritanopia (blue-blind)
#223B4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3c2182;
/* rgb */ color: rgb(60, 33, 130);
/* oklch */ color: oklch(34.9% 0.152 288.7);
Tailwind
colors: {
  custom: {
    50: '#7a5fa7',
    500: '#3c2182',
    950: '#000000',
  },
}
SCSS
$custom: #3c2182;
$custom-light: #7a5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2182",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 256.701,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34873,
    "c": 0.15176,
    "h": 288.7
  },
  "luminance": 0.0366
}

Semantic roles & 50–950 ramp

primary
#3C2182
secondary
#97B44A
accent
#E345B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3C2182

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

Preview Lab → · Contrast checker → · Palette generator →

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