#3C0C51#3C0C51

#3C0C51 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.8% C 0.120 H 312.8°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#3C0C51
RGBrgb(60, 12, 81)
HSLhsl(282, 74%, 18%)
HSVhsv(282, 85%, 32%)
CMYKcmyk(25.9%, 85.2%, 0%, 68.2%)
CIE-LABlab(14.50, 34.56, -31.01)
CIE-LCHlch(14.50, 46.43, 318.10°)
OKLaboklab(27.85% 0.0812 -0.0877)
OKLCHoklch(27.85% 0.12 312.8)
XYZxyz(3.4799, 1.8178, 7.9505)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C0C51 #21510C
analogous
#190C51 #3C0C51 #510C43
triadic
#3C0C51 #513C0C #0C513C
tetradic
#3C0C51 #51190C #21510C #0C4351
square
#3C0C51 #51190C #21510C #0C4351
split-complementary
#3C0C51 #43510C #0C5119
monochromatic
#14041B #15041C #3C0C51 #631486 #8B1CBC

Accessibility & contrast

On white

15.40
#3C0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#3C0C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C0C51
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C0C51#FFFFFF#000000##FFFFFF
##3C0C511.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#032650
Tritanopia (blue-blind)
#3A1D2E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3c0c51;
/* rgb */ color: rgb(60, 12, 81);
/* oklch */ color: oklch(27.8% 0.120 312.8);
Tailwind
colors: {
  custom: {
    50: '#755182',
    500: '#3c0c51',
    950: '#000000',
  },
}
SCSS
$custom: #3c0c51;
$custom-light: #755182;
$custom-dark: #000000;
JSON
{
  "hex": "#3c0c51",
  "rgb": {
    "r": 60,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 281.739,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27849,
    "c": 0.11956,
    "h": 312.8
  },
  "luminance": 0.01818
}

Semantic roles & 50–950 ramp

primary
#3C0C51
secondary
#4A8C2C
accent
#F13770
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#09020A
muted
#7B787C

Preview Lab

Preview with #3C0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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