#3C2A78#3C2A78

#3C2A78 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.4% C 0.127 H 288.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#3C2A78
RGBrgb(60, 42, 120)
HSLhsl(254, 48%, 32%)
HSVhsv(254, 65%, 47%)
CMYKcmyk(50%, 65%, 0%, 52.9%)
CIE-LABlab(23.58, 29.37, -41.95)
CIE-LCHlch(23.58, 51.21, 304.99°)
OKLaboklab(35.37% 0.041 -0.1201)
OKLCHoklch(35.37% 0.127 288.8)
XYZxyz(6.0806, 3.9724, 18.2120)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2A78 #66782A
analogous
#2A3F78 #3C2A78 #632A78
triadic
#3C2A78 #783C2A #2A783C
tetradic
#3C2A78 #782A3F #66782A #2A7863
square
#3C2A78 #782A3F #66782A #2A7863
split-complementary
#3C2A78 #78632A #3F782A
monochromatic
#0F0A1D #251A4B #3C2A78 #533AA5 #7158C5

Accessibility & contrast

On white

11.70
#3C2A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3C2A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2A78
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2A78#FFFFFF#000000##FFFFFF
##3C2A781.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7A
Deuteranopia (green-blind)
#003676
Tritanopia (blue-blind)
#283C4D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3c2a78;
/* rgb */ color: rgb(60, 42, 120);
/* oklch */ color: oklch(35.4% 0.127 288.8);
Tailwind
colors: {
  custom: {
    50: '#7764a0',
    500: '#3c2a78',
    950: '#000000',
  },
}
SCSS
$custom: #3c2a78;
$custom-light: #7764a0;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2a78",
  "rgb": {
    "r": 60,
    "g": 42,
    "b": 120
  },
  "hsl": {
    "h": 253.846,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35368,
    "c": 0.12685,
    "h": 288.8
  },
  "luminance": 0.03973
}

Semantic roles & 50–950 ramp

primary
#3C2A78
secondary
#96AA54
accent
#D850B8
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09050F
muted
#7B7A7E

Preview Lab

Preview with #3C2A78

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

Preview Lab → · Contrast checker → · Palette generator →

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