#3C0840#3C0840

#3C0840 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.1% C 0.107 H 324.9°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#3C0840
RGBrgb(60, 8, 64)
HSLhsl(296, 78%, 14%)
HSVhsv(296, 88%, 25%)
CMYKcmyk(6.2%, 87.5%, 0%, 74.9%)
CIE-LABlab(12.64, 32.36, -22.19)
CIE-LCHlch(12.64, 39.24, 325.56°)
OKLaboklab(26.11% 0.0879 -0.0619)
OKLCHoklch(26.11% 0.107 324.9)
XYZxyz(2.8757, 1.5047, 4.9885)
Luminance0.0150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C0840 #0C4008
analogous
#200840 #3C0840 #400828
triadic
#3C0840 #403C08 #08403C
tetradic
#3C0840 #402008 #0C4008 #082840
square
#3C0840 #402008 #0C4008 #082840
split-complementary
#3C0840 #284008 #084020
monochromatic
#19031B #19031B #3C0840 #6F0F76 #A216AD

Accessibility & contrast

On white

16.14
#3C0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#3C0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C0840
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C0840#FFFFFF#000000##FFFFFF
##3C08401.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#14233F
Tritanopia (blue-blind)
#3D1324
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #3c0840;
/* rgb */ color: rgb(60, 8, 64);
/* oklch */ color: oklch(26.1% 0.107 324.9);
Tailwind
colors: {
  custom: {
    50: '#744f75',
    500: '#3c0840',
    950: '#000000',
  },
}
SCSS
$custom: #3c0840;
$custom-light: #744f75;
$custom-dark: #000000;
JSON
{
  "hex": "#3c0840",
  "rgb": {
    "r": 60,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 295.714,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.26111,
    "c": 0.10747,
    "h": 324.9
  },
  "luminance": 0.01504
}

Semantic roles & 50–950 ramp

primary
#3C0840
secondary
#2C7E25
accent
#F43441
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080208
muted
#7B787B

Preview Lab

Preview with #3C0840

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

Preview Lab → · Contrast checker → · Palette generator →

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