#3C1273#3C1273

#3C1273 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.150 H 296.0°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#3C1273
RGBrgb(60, 18, 115)
HSLhsl(266, 73%, 26%)
HSVhsv(266, 84%, 45%)
CMYKcmyk(47.8%, 84.3%, 0%, 54.9%)
CIE-LABlab(18.50, 40.78, -47.04)
CIE-LCHlch(18.50, 62.26, 310.92°)
OKLaboklab(31.62% 0.0657 -0.1349)
OKLCHoklch(31.62% 0.15 296)
XYZxyz(5.1735, 2.6309, 16.4516)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1273 #497312
analogous
#121973 #3C1273 #6C1273
triadic
#3C1273 #733C12 #12733C
tetradic
#3C1273 #731219 #497312 #12736C
square
#3C1273 #731219 #497312 #12736C
split-complementary
#3C1273 #736C12 #197312
monochromatic
#0E041A #200A3E #3C1273 #581AA8 #7323DD

Accessibility & contrast

On white

13.76
#3C1273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3C1273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1273
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1273#FFFFFF#000000##FFFFFF
##3C12731.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E76
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#2C2E43
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c1273;
/* rgb */ color: rgb(60, 18, 115);
/* oklch */ color: oklch(31.6% 0.150 296.0);
Tailwind
colors: {
  custom: {
    50: '#78569c',
    500: '#3c1273',
    950: '#000000',
  },
}
SCSS
$custom: #3c1273;
$custom-light: #78569c;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1273",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 265.979,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31615,
    "c": 0.15003,
    "h": 296
  },
  "luminance": 0.02631
}

Semantic roles & 50–950 ramp

primary
#3C1273
secondary
#78AA37
accent
#F038A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3C1273

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

Preview Lab → · Contrast checker → · Palette generator →

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