#3C1783#3C1783

#3C1783 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.163 H 290.2°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#3C1783
RGBrgb(60, 23, 131)
HSLhsl(261, 70%, 30%)
HSVhsv(261, 82%, 51%)
CMYKcmyk(54.2%, 82.4%, 0%, 48.6%)
CIE-LABlab(20.87, 43.04, -53.35)
CIE-LCHlch(20.87, 68.55, 308.89°)
OKLaboklab(33.75% 0.0564 -0.1534)
OKLCHoklch(33.75% 0.163 290.2)
XYZxyz(6.2654, 3.2119, 21.7581)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C1783 #5E8317
analogous
#172883 #3C1783 #721783
triadic
#3C1783 #833C17 #17833C
tetradic
#3C1783 #831728 #5E8317 #178372
square
#3C1783 #831728 #5E8317 #178372
split-complementary
#3C1783 #837217 #288317
monochromatic
#0C051B #240E4F #3C1783 #5420B7 #7038DC

Accessibility & contrast

On white

12.79
#3C1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#3C1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C1783
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C1783#FFFFFF#000000##FFFFFF
##3C17831.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003486
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#21374D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3c1783;
/* rgb */ color: rgb(60, 23, 131);
/* oklch */ color: oklch(33.8% 0.163 290.2);
Tailwind
colors: {
  custom: {
    50: '#7b5aa8',
    500: '#3c1783',
    950: '#000000',
  },
}
SCSS
$custom: #3c1783;
$custom-light: #7b5aa8;
$custom-dark: #000000;
JSON
{
  "hex": "#3c1783",
  "rgb": {
    "r": 60,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 260.556,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33754,
    "c": 0.16345,
    "h": 290.2
  },
  "luminance": 0.03212
}

Semantic roles & 50–950 ramp

primary
#3C1783
secondary
#8EB73F
accent
#ED3BB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #3C1783

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

Preview Lab → · Contrast checker → · Palette generator →

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