#3C1172#3C1172

#3C1172 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.150 H 296.5°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#3C1172
RGBrgb(60, 17, 114)
HSLhsl(267, 74%, 26%)
HSVhsv(267, 85%, 45%)
CMYKcmyk(47.4%, 85.1%, 0%, 55.3%)
CIE-LABlab(18.26, 40.92, -46.79)
CIE-LCHlch(18.26, 62.16, 311.17°)
OKLaboklab(31.42% 0.0668 -0.1341)
OKLCHoklch(31.42% 0.15 296.5)
XYZxyz(5.1004, 2.5763, 16.1449)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1172 #477211
analogous
#111672 #3C1172 #6C1172
triadic
#3C1172 #723C11 #11723C
tetradic
#3C1172 #721116 #477211 #11726C
square
#3C1172 #721116 #477211 #11726C
split-complementary
#3C1172 #726C11 #167211
monochromatic
#0E041B #20093D #3C1172 #5819A7 #7421DD

Accessibility & contrast

On white

13.86
#3C1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3C1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1172
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1172#FFFFFF#000000##FFFFFF
##3C11721.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#2D2D42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c1172;
/* rgb */ color: rgb(60, 17, 114);
/* oklch */ color: oklch(31.4% 0.150 296.5);
Tailwind
colors: {
  custom: {
    50: '#78569b',
    500: '#3c1172',
    950: '#000000',
  },
}
SCSS
$custom: #3c1172;
$custom-light: #78569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1172",
  "rgb": {
    "r": 60,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 266.598,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31418,
    "c": 0.14984,
    "h": 296.5
  },
  "luminance": 0.02576
}

Semantic roles & 50–950 ramp

primary
#3C1172
secondary
#76A936
accent
#F1379E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3C1172

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

Preview Lab → · Contrast checker → · Palette generator →

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