#3C1268#3C1268

#3C1268 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.138 H 300.2°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#3C1268
RGBrgb(60, 18, 104)
HSLhsl(269, 70%, 24%)
HSVhsv(269, 83%, 41%)
CMYKcmyk(42.3%, 82.7%, 0%, 59.2%)
CIE-LABlab(17.43, 37.84, -41.64)
CIE-LCHlch(17.43, 56.27, 312.26°)
OKLaboklab(30.54% 0.0694 -0.119)
OKLCHoklch(30.54% 0.138 300.2)
XYZxyz(4.5779, 2.3927, 13.3147)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1268 #3E6812
analogous
#121368 #3C1268 #671268
triadic
#3C1268 #683C12 #12683C
tetradic
#3C1268 #681213 #3E6812 #126867
square
#3C1268 #681213 #3E6812 #126867
split-complementary
#3C1268 #686712 #136812
monochromatic
#0F051A #1E0934 #3C1268 #5A1B9C #7824D0

Accessibility & contrast

On white

14.20
#3C1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3C1268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1268
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1268#FFFFFF#000000##FFFFFF
##3C12681.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#32293D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3c1268;
/* rgb */ color: rgb(60, 18, 104);
/* oklch */ color: oklch(30.5% 0.138 300.2);
Tailwind
colors: {
  custom: {
    50: '#775694',
    500: '#3c1268',
    950: '#000000',
  },
}
SCSS
$custom: #3c1268;
$custom-light: #775694;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1268",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 269.302,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30539,
    "c": 0.13778,
    "h": 300.2
  },
  "luminance": 0.02393
}

Semantic roles & 50–950 ramp

primary
#3C1268
secondary
#6CA036
accent
#ED3B96
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3C1268

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

Preview Lab → · Contrast checker → · Palette generator →

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