#3C1171#3C1171

#3C1171 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.149 H 296.8°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#3C1171
RGBrgb(60, 17, 113)
HSLhsl(267, 74%, 25%)
HSVhsv(267, 85%, 44%)
CMYKcmyk(46.9%, 85%, 0%, 55.7%)
CIE-LABlab(18.16, 40.65, -46.31)
CIE-LCHlch(18.16, 61.62, 311.28°)
OKLaboklab(31.32% 0.0672 -0.1327)
OKLCHoklch(31.32% 0.149 296.8)
XYZxyz(5.0438, 2.5537, 15.8468)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1171 #467111
analogous
#111671 #3C1171 #6C1171
triadic
#3C1171 #713C11 #11713C
tetradic
#3C1171 #711116 #467111 #11716C
square
#3C1171 #711116 #467111 #11716C
split-complementary
#3C1171 #716C11 #167111
monochromatic
#0E041B #20093C #3C1171 #5819A6 #7421DB

Accessibility & contrast

On white

13.90
#3C1171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3C1171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1171
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1171#FFFFFF#000000##FFFFFF
##3C11711.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#2E2D42
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3c1171;
/* rgb */ color: rgb(60, 17, 113);
/* oklch */ color: oklch(31.3% 0.149 296.8);
Tailwind
colors: {
  custom: {
    50: '#78569b',
    500: '#3c1171',
    950: '#000000',
  },
}
SCSS
$custom: #3c1171;
$custom-light: #78569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1171",
  "rgb": {
    "r": 60,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 266.875,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31318,
    "c": 0.14875,
    "h": 296.8
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#3C1171
secondary
#75A836
accent
#F1379E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3C1171

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

Preview Lab → · Contrast checker → · Palette generator →

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