#3C1252#3C1252

#3C1252 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.6% C 0.113 H 311.3°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#3C1252
RGBrgb(60, 18, 82)
HSLhsl(279, 64%, 20%)
HSVhsv(279, 78%, 32%)
CMYKcmyk(26.8%, 78%, 0%, 67.8%)
CIE-LABlab(15.50, 32.17, -30.07)
CIE-LCHlch(15.50, 44.04, 316.94°)
OKLaboklab(28.58% 0.0746 -0.085)
OKLCHoklch(28.58% 0.113 311.3)
XYZxyz(3.6025, 2.0026, 8.1778)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1252 #285212
analogous
#1C1252 #3C1252 #521248
triadic
#3C1252 #523C12 #12523C
tetradic
#3C1252 #521C12 #285212 #124852
square
#3C1252 #521C12 #285212 #124852
split-complementary
#3C1252 #485212 #12521C
monochromatic
#120619 #170720 #3C1252 #611D84 #8528B6

Accessibility & contrast

On white

15.00
#3C1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1252
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1252#FFFFFF#000000##FFFFFF
##3C12521.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#082751
Tritanopia (blue-blind)
#392030
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3c1252;
/* rgb */ color: rgb(60, 18, 82);
/* oklch */ color: oklch(28.6% 0.113 311.3);
Tailwind
colors: {
  custom: {
    50: '#755483',
    500: '#3c1252',
    950: '#000000',
  },
}
SCSS
$custom: #3c1252;
$custom-light: #755483;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1252",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 279.375,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28582,
    "c": 0.11315,
    "h": 311.3
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#3C1252
secondary
#528B35
accent
#E7417A
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3C1252

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

Preview Lab → · Contrast checker → · Palette generator →

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