#3C0D5A#3C0D5A

#3C0D5A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.128 H 307.6°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#3C0D5A
RGBrgb(60, 13, 90)
HSLhsl(277, 75%, 20%)
HSVhsv(277, 86%, 35%)
CMYKcmyk(33.3%, 85.6%, 0%, 64.7%)
CIE-LABlab(15.42, 36.33, -35.62)
CIE-LCHlch(15.42, 50.88, 315.57°)
OKLaboklab(28.74% 0.078 -0.1013)
OKLCHoklch(28.74% 0.128 307.6)
XYZxyz(3.8525, 1.9867, 9.8514)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C0D5A #2B5A0D
analogous
#150D5A #3C0D5A #5A0D52
triadic
#3C0D5A #5A3C0D #0D5A3C
tetradic
#3C0D5A #5A150D #2B5A0D #0D525A
square
#3C0D5A #5A150D #2B5A0D #0D525A
split-complementary
#3C0D5A #525A0D #0D5A15
monochromatic
#12041B #180525 #3C0D5A #60158F #831CC5

Accessibility & contrast

On white

15.03
#3C0D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#3C0D5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C0D5A
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C0D5A#FFFFFF#000000##FFFFFF
##3C0D5A1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002758
Tritanopia (blue-blind)
#372134
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3c0d5a;
/* rgb */ color: rgb(60, 13, 90);
/* oklch */ color: oklch(28.7% 0.128 307.6);
Tailwind
colors: {
  custom: {
    50: '#765289',
    500: '#3c0d5a',
    950: '#000000',
  },
}
SCSS
$custom: #3c0d5a;
$custom-light: #765289;
$custom-dark: #000000;
JSON
{
  "hex": "#3c0d5a",
  "rgb": {
    "r": 60,
    "g": 13,
    "b": 90
  },
  "hsl": {
    "h": 276.623,
    "s": 74.757,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28736,
    "c": 0.12786,
    "h": 307.6
  },
  "luminance": 0.01987
}

Semantic roles & 50–950 ramp

primary
#3C0D5A
secondary
#56942E
accent
#F1367F
background
#F7F4F8
surface
#EDE7F0
border
#C8C3CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3C0D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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