#3C1157#3C1157

#3C1157 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.120 H 308.6°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#3C1157
RGBrgb(60, 17, 87)
HSLhsl(277, 67%, 20%)
HSVhsv(277, 80%, 34%)
CMYKcmyk(31%, 80.5%, 0%, 65.9%)
CIE-LABlab(15.75, 33.89, -33.06)
CIE-LCHlch(15.75, 47.35, 315.71°)
OKLaboklab(28.89% 0.0749 -0.0938)
OKLCHoklch(28.89% 0.12 308.6)
XYZxyz(3.7839, 2.0497, 9.2113)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1157 #2C5711
analogous
#191157 #3C1157 #57114F
triadic
#3C1157 #573C11 #11573C
tetradic
#3C1157 #571911 #2C5711 #114F57
square
#3C1157 #571911 #2C5711 #114F57
split-complementary
#3C1157 #4F5711 #115719
monochromatic
#12051A #190724 #3C1157 #5F1B8A #8325BD

Accessibility & contrast

On white

14.89
#3C1157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3C1157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1157
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1157#FFFFFF#000000##FFFFFF
##3C11571.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002856
Tritanopia (blue-blind)
#382233
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3c1157;
/* rgb */ color: rgb(60, 17, 87);
/* oklch */ color: oklch(28.9% 0.120 308.6);
Tailwind
colors: {
  custom: {
    50: '#755487',
    500: '#3c1157',
    950: '#000000',
  },
}
SCSS
$custom: #3c1157;
$custom-light: #755487;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1157",
  "rgb": {
    "r": 60,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 276.857,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28886,
    "c": 0.12002,
    "h": 308.6
  },
  "luminance": 0.0205
}

Semantic roles & 50–950 ramp

primary
#3C1157
secondary
#579034
accent
#EA3E80
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3C1157

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

Preview Lab → · Contrast checker → · Palette generator →

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