#3C1794#3C1794

#3C1794 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.183 H 286.0°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#3C1794
RGBrgb(60, 23, 148)
HSLhsl(258, 73%, 34%)
HSVhsv(258, 84%, 58%)
CMYKcmyk(59.5%, 84.5%, 0%, 42%)
CIE-LABlab(22.69, 47.81, -60.97)
CIE-LCHlch(22.69, 77.48, 308.10°)
OKLaboklab(35.55% 0.0503 -0.1756)
OKLCHoklch(35.55% 0.183 286)
XYZxyz(7.5136, 3.7111, 28.3316)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1794 #6F9417
analogous
#173094 #3C1794 #7A1794
triadic
#3C1794 #943C17 #17943C
tetradic
#3C1794 #941730 #6F9417 #17947A
square
#3C1794 #941730 #6F9417 #17947A
split-complementary
#3C1794 #947A17 #309417
monochromatic
#11072A #270F5F #3C1794 #511FC9 #7244E2

Accessibility & contrast

On white

12.05
#3C1794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#3C1794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1794
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1794#FFFFFF#000000##FFFFFF
##3C17941.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#0A3E57
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3c1794;
/* rgb */ color: rgb(60, 23, 148);
/* oklch */ color: oklch(35.6% 0.183 286.0);
Tailwind
colors: {
  custom: {
    50: '#7e5bb5',
    500: '#3c1794',
    950: '#000000',
  },
}
SCSS
$custom: #3c1794;
$custom-light: #7e5bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1794",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 257.76,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35552,
    "c": 0.18271,
    "h": 286
  },
  "luminance": 0.03712
}

Semantic roles & 50–950 ramp

primary
#3C1794
secondary
#9DC344
accent
#F038B9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3C1794

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

Preview Lab → · Contrast checker → · Palette generator →

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