#3C197E#3C197E

#3C197E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.156 H 291.3°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#3C197E
RGBrgb(60, 25, 126)
HSLhsl(261, 67%, 30%)
HSVhsv(261, 80%, 49%)
CMYKcmyk(52.4%, 80.2%, 0%, 50.6%)
CIE-LABlab(20.68, 40.71, -50.50)
CIE-LCHlch(20.68, 64.87, 308.87°)
OKLaboklab(33.47% 0.0566 -0.1451)
OKLCHoklch(33.47% 0.156 291.3)
XYZxyz(5.9759, 3.1620, 20.0301)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C197E #5B7E19
analogous
#19297E #3C197E #6F197E
triadic
#3C197E #7E3C19 #197E3C
tetradic
#3C197E #7E1929 #5B7E19 #197E6F
square
#3C197E #7E1929 #5B7E19 #197E6F
split-complementary
#3C197E #7E6F19 #297E19
monochromatic
#0C051A #240F4B #3C197E #5423B1 #703AD8

Accessibility & contrast

On white

12.86
#3C197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3C197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C197E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C197E#FFFFFF#000000##FFFFFF
##3C197E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#25364B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3c197e;
/* rgb */ color: rgb(60, 25, 126);
/* oklch */ color: oklch(33.5% 0.156 291.3);
Tailwind
colors: {
  custom: {
    50: '#7a5aa4',
    500: '#3c197e',
    950: '#000000',
  },
}
SCSS
$custom: #3c197e;
$custom-light: #7a5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3c197e",
  "rgb": {
    "r": 60,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 260.792,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33466,
    "c": 0.15572,
    "h": 291.3
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#3C197E
secondary
#8BB241
accent
#EA3EAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3C197E

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

Preview Lab → · Contrast checker → · Palette generator →

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