#3C2197#3C2197

#3C2197 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.177 H 284.1°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#3C2197
RGBrgb(60, 33, 151)
HSLhsl(254, 64%, 36%)
HSVhsv(254, 78%, 59%)
CMYKcmyk(60.3%, 78.1%, 0%, 40.8%)
CIE-LABlab(24.58, 44.12, -59.70)
CIE-LCHlch(24.58, 74.23, 306.46°)
OKLaboklab(36.96% 0.0431 -0.1721)
OKLCHoklch(36.96% 0.177 284.1)
XYZxyz(7.9915, 4.2822, 29.6776)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2197 #7C9721
analogous
#214197 #3C2197 #772197
triadic
#3C2197 #973C21 #21973C
tetradic
#3C2197 #972141 #7C9721 #219777
square
#3C2197 #972141 #7C9721 #219777
split-complementary
#3C2197 #977721 #419721
monochromatic
#140B33 #281665 #3C2197 #502CC9 #7658DA

Accessibility & contrast

On white

11.31
#3C2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3C2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2197
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2197#FFFFFF#000000##FFFFFF
##3C21971.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#01435B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3c2197;
/* rgb */ color: rgb(60, 33, 151);
/* oklch */ color: oklch(37.0% 0.177 284.1);
Tailwind
colors: {
  custom: {
    50: '#7d60b7',
    500: '#3c2197',
    950: '#000000',
  },
}
SCSS
$custom: #3c2197;
$custom-light: #7d60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2197",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 253.729,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36958,
    "c": 0.17738,
    "h": 284.1
  },
  "luminance": 0.04283
}

Semantic roles & 50–950 ramp

primary
#3C2197
secondary
#A6BE55
accent
#E741C1
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3C2197

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

Preview Lab → · Contrast checker → · Palette generator →

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