#3C1771#3C1771

#3C1771 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.143 H 295.9°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#3C1771
RGBrgb(60, 23, 113)
HSLhsl(265, 66%, 27%)
HSVhsv(265, 80%, 44%)
CMYKcmyk(46.9%, 79.6%, 0%, 55.7%)
CIE-LABlab(19.08, 37.99, -44.80)
CIE-LCHlch(19.08, 58.74, 310.30°)
OKLaboklab(31.96% 0.0622 -0.1283)
OKLCHoklch(31.96% 0.143 295.9)
XYZxyz(5.1497, 2.7656, 15.8821)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1771 #4C7117
analogous
#171F71 #3C1771 #691771
triadic
#3C1771 #713C17 #17713C
tetradic
#3C1771 #71171F #4C7117 #177169
square
#3C1771 #71171F #4C7117 #177169
split-complementary
#3C1771 #716917 #1F7117
monochromatic
#0E0519 #210D3E #3C1771 #5721A4 #722ED4

Accessibility & contrast

On white

13.52
#3C1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3C1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1771
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1771#FFFFFF#000000##FFFFFF
##3C17711.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F74
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#2D2F43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3c1771;
/* rgb */ color: rgb(60, 23, 113);
/* oklch */ color: oklch(32.0% 0.143 295.9);
Tailwind
colors: {
  custom: {
    50: '#78599b',
    500: '#3c1771',
    950: '#000000',
  },
}
SCSS
$custom: #3c1771;
$custom-light: #78599b;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1771",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 264.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31958,
    "c": 0.14262,
    "h": 295.9
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#3C1771
secondary
#7BA73D
accent
#E93FA3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3C1771

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

Preview Lab → · Contrast checker → · Palette generator →

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