#3C1274#3C1274

#3C1274 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.151 H 295.6°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#3C1274
RGBrgb(60, 18, 116)
HSLhsl(266, 73%, 26%)
HSVhsv(266, 84%, 45%)
CMYKcmyk(48.3%, 84.5%, 0%, 54.5%)
CIE-LABlab(18.60, 41.05, -47.52)
CIE-LCHlch(18.60, 62.79, 310.82°)
OKLaboklab(31.72% 0.0654 -0.1363)
OKLCHoklch(31.72% 0.151 295.6)
XYZxyz(5.2313, 2.6541, 16.7563)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1274 #4A7412
analogous
#121974 #3C1274 #6D1274
triadic
#3C1274 #743C12 #12743C
tetradic
#3C1274 #741219 #4A7412 #12746D
square
#3C1274 #741219 #4A7412 #12746D
split-complementary
#3C1274 #746D12 #197412
monochromatic
#0E041A #210A3F #3C1274 #571AA9 #7323DD

Accessibility & contrast

On white

13.72
#3C1274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C1274
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1274#FFFFFF#000000##FFFFFF
##3C12741.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#2C2E44
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3c1274;
/* rgb */ color: rgb(60, 18, 116);
/* oklch */ color: oklch(31.7% 0.151 295.6);
Tailwind
colors: {
  custom: {
    50: '#79569d',
    500: '#3c1274',
    950: '#000000',
  },
}
SCSS
$custom: #3c1274;
$custom-light: #79569d;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1274",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 265.714,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31716,
    "c": 0.15113,
    "h": 295.6
  },
  "luminance": 0.02654
}

Semantic roles & 50–950 ramp

primary
#3C1274
secondary
#79AB37
accent
#F038A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3C1274

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

Preview Lab → · Contrast checker → · Palette generator →

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