#3C1272#3C1272

#3C1272 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.149 H 296.3°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#3C1272
RGBrgb(60, 18, 114)
HSLhsl(266, 73%, 26%)
HSVhsv(266, 84%, 45%)
CMYKcmyk(47.4%, 84.2%, 0%, 55.3%)
CIE-LABlab(18.40, 40.51, -46.56)
CIE-LCHlch(18.40, 61.71, 311.03°)
OKLaboklab(31.51% 0.0661 -0.1335)
OKLCHoklch(31.51% 0.149 296.3)
XYZxyz(5.1162, 2.6081, 16.1502)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1272 #487212
analogous
#121872 #3C1272 #6C1272
triadic
#3C1272 #723C12 #12723C
tetradic
#3C1272 #721218 #487212 #12726C
square
#3C1272 #721218 #487212 #12726C
split-complementary
#3C1272 #726C12 #187212
monochromatic
#0E041A #200A3D #3C1272 #581AA7 #7423DC

Accessibility & contrast

On white

13.80
#3C1272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3C1272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1272
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1272#FFFFFF#000000##FFFFFF
##3C12721.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002C70
Tritanopia (blue-blind)
#2D2E43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c1272;
/* rgb */ color: rgb(60, 18, 114);
/* oklch */ color: oklch(31.5% 0.149 296.3);
Tailwind
colors: {
  custom: {
    50: '#78569b',
    500: '#3c1272',
    950: '#000000',
  },
}
SCSS
$custom: #3c1272;
$custom-light: #78569b;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1272",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 266.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31515,
    "c": 0.14892,
    "h": 296.3
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#3C1272
secondary
#77A937
accent
#EF389F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3C1272

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

Preview Lab → · Contrast checker → · Palette generator →

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