#3C1266#3C1266

#3C1266 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.136 H 301.1°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#3C1266
RGBrgb(60, 18, 102)
HSLhsl(270, 70%, 24%)
HSVhsv(270, 82%, 40%)
CMYKcmyk(41.2%, 82.4%, 0%, 60%)
CIE-LABlab(17.24, 37.31, -40.63)
CIE-LCHlch(17.24, 55.17, 312.56°)
OKLaboklab(30.35% 0.07 -0.1161)
OKLCHoklch(30.35% 0.136 301.1)
XYZxyz(4.4775, 2.3525, 12.7860)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1266 #3C6612
analogous
#121266 #3C1266 #661266
triadic
#3C1266 #663C12 #12663C
tetradic
#3C1266 #661212 #3C6612 #126666
square
#3C1266 #661212 #3C6612 #126666
split-complementary
#3C1266 #666612 #126612
monochromatic
#0F051A #1D0932 #3C1266 #5B1B9A #7924CE

Accessibility & contrast

On white

14.28
#3C1266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3C1266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1266
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1266#FFFFFF#000000##FFFFFF
##3C12661.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#33293C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3c1266;
/* rgb */ color: rgb(60, 18, 102);
/* oklch */ color: oklch(30.3% 0.136 301.1);
Tailwind
colors: {
  custom: {
    50: '#775592',
    500: '#3c1266',
    950: '#000000',
  },
}
SCSS
$custom: #3c1266;
$custom-light: #775592;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1266",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 270,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3035,
    "c": 0.13554,
    "h": 301.1
  },
  "luminance": 0.02353
}

Semantic roles & 50–950 ramp

primary
#3C1266
secondary
#6A9E36
accent
#ED3B94
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3C1266

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

Preview Lab → · Contrast checker → · Palette generator →

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