#3C0F5A#3C0F5A

#3C0F5A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.126 H 307.3°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#3C0F5A
RGBrgb(60, 15, 90)
HSLhsl(276, 71%, 21%)
HSVhsv(276, 83%, 35%)
CMYKcmyk(33.3%, 83.3%, 0%, 64.7%)
CIE-LABlab(15.70, 35.52, -35.16)
CIE-LCHlch(15.70, 49.98, 315.29°)
OKLaboklab(28.93% 0.0762 -0.1)
OKLCHoklch(28.93% 0.126 307.3)
XYZxyz(3.8794, 2.0405, 9.8604)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C0F5A #2D5A0F
analogous
#160F5A #3C0F5A #5A0F52
triadic
#3C0F5A #5A3C0F #0F5A3C
tetradic
#3C0F5A #5A160F #2D5A0F #0F525A
square
#3C0F5A #5A160F #2D5A0F #0F525A
split-complementary
#3C0F5A #525A0F #0F5A16
monochromatic
#11041A #190626 #3C0F5A #5F188E #8220C3

Accessibility & contrast

On white

14.91
#3C0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C0F5A
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C0F5A#FFFFFF#000000##FFFFFF
##3C0F5A1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c0f5a;
/* rgb */ color: rgb(60, 15, 90);
/* oklch */ color: oklch(28.9% 0.126 307.3);
Tailwind
colors: {
  custom: {
    50: '#765389',
    500: '#3c0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #3c0f5a;
$custom-light: #765389;
$custom-dark: #000000;
JSON
{
  "hex": "#3c0f5a",
  "rgb": {
    "r": 60,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 276,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28933,
    "c": 0.12568,
    "h": 307.3
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

primary
#3C0F5A
secondary
#599431
accent
#EE3A82
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #3C0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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