#3C1152#3C1152

#3C1152 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.115 H 311.4°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#3C1152
RGBrgb(60, 17, 82)
HSLhsl(280, 66%, 19%)
HSVhsv(280, 79%, 32%)
CMYKcmyk(26.8%, 79.3%, 0%, 67.8%)
CIE-LABlab(15.33, 32.65, -30.34)
CIE-LCHlch(15.33, 44.57, 317.10°)
OKLaboklab(28.46% 0.0758 -0.0858)
OKLCHoklch(28.46% 0.115 311.4)
XYZxyz(3.5866, 1.9708, 8.1725)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1152 #275211
analogous
#1B1152 #3C1152 #521148
triadic
#3C1152 #523C11 #11523C
tetradic
#3C1152 #521B11 #275211 #114852
square
#3C1152 #521B11 #275211 #114852
split-complementary
#3C1152 #485211 #11521B
monochromatic
#130519 #17061F #3C1152 #611C85 #8626B7

Accessibility & contrast

On white

15.06
#3C1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3C1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1152
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1152#FFFFFF#000000##FFFFFF
##3C11521.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#072751
Tritanopia (blue-blind)
#392030
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3c1152;
/* rgb */ color: rgb(60, 17, 82);
/* oklch */ color: oklch(28.5% 0.115 311.4);
Tailwind
colors: {
  custom: {
    50: '#755483',
    500: '#3c1152',
    950: '#000000',
  },
}
SCSS
$custom: #3c1152;
$custom-light: #755483;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1152",
  "rgb": {
    "r": 60,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 279.692,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28463,
    "c": 0.1145,
    "h": 311.4
  },
  "luminance": 0.01971
}

Semantic roles & 50–950 ramp

primary
#3C1152
secondary
#518B34
accent
#E93F79
background
#F7F5F8
surface
#EDE8EF
border
#C8C4CA
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3C1152

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

Preview Lab → · Contrast checker → · Palette generator →

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