#3C1262#3C1262

#3C1262 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.131 H 302.9°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#3C1262
RGBrgb(60, 18, 98)
HSLhsl(272, 69%, 23%)
HSVhsv(272, 82%, 38%)
CMYKcmyk(38.8%, 81.6%, 0%, 61.6%)
CIE-LABlab(16.87, 36.26, -38.59)
CIE-LCHlch(16.87, 52.95, 313.22°)
OKLaboklab(29.98% 0.0711 -0.1101)
OKLCHoklch(29.98% 0.131 302.9)
XYZxyz(4.2839, 2.2751, 11.7664)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1262 #386212
analogous
#141262 #3C1262 #621260
triadic
#3C1262 #623C12 #12623C
tetradic
#3C1262 #621412 #386212 #126062
square
#3C1262 #621412 #386212 #126062
split-complementary
#3C1262 #606212 #126214
monochromatic
#10051A #1C092E #3C1262 #5C1B96 #7B25C9

Accessibility & contrast

On white

14.43
#3C1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3C1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1262
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1262#FFFFFF#000000##FFFFFF
##3C12621.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002960
Tritanopia (blue-blind)
#342739
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3c1262;
/* rgb */ color: rgb(60, 18, 98);
/* oklch */ color: oklch(30.0% 0.131 302.9);
Tailwind
colors: {
  custom: {
    50: '#76558f',
    500: '#3c1262',
    950: '#000000',
  },
}
SCSS
$custom: #3c1262;
$custom-light: #76558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1262",
  "rgb": {
    "r": 60,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 271.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29978,
    "c": 0.13107,
    "h": 302.9
  },
  "luminance": 0.02275
}

Semantic roles & 50–950 ramp

primary
#3C1262
secondary
#659A36
accent
#EC3C90
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3C1262

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

Preview Lab → · Contrast checker → · Palette generator →

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