#3C2181#3C2181

#3C2181 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.151 H 289.0°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#3C2181
RGBrgb(60, 33, 129)
HSLhsl(257, 59%, 32%)
HSVhsv(257, 74%, 51%)
CMYKcmyk(53.5%, 74.4%, 0%, 49.4%)
CIE-LABlab(22.42, 37.48, -49.55)
CIE-LCHlch(22.42, 62.13, 307.10°)
OKLaboklab(34.78% 0.0489 -0.1424)
OKLCHoklch(34.78% 0.151 289)
XYZxyz(6.3686, 3.6331, 21.1303)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2181 #668121
analogous
#213681 #3C2181 #6C2181
triadic
#3C2181 #813C21 #21813C
tetradic
#3C2181 #812136 #668121 #21816C
square
#3C2181 #812136 #668121 #21816C
split-complementary
#3C2181 #816C21 #368121
monochromatic
#0F0820 #251550 #3C2181 #532DB2 #714BD1

Accessibility & contrast

On white

12.16
#3C2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3C2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2181
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2181#FFFFFF#000000##FFFFFF
##3C21811.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#223A4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3c2181;
/* rgb */ color: rgb(60, 33, 129);
/* oklch */ color: oklch(34.8% 0.151 289.0);
Tailwind
colors: {
  custom: {
    50: '#795fa6',
    500: '#3c2181',
    950: '#000000',
  },
}
SCSS
$custom: #3c2181;
$custom-light: #795fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2181",
  "rgb": {
    "r": 60,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 256.875,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34777,
    "c": 0.15052,
    "h": 289
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#3C2181
secondary
#96B44A
accent
#E245B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #3C2181

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

Preview Lab → · Contrast checker → · Palette generator →

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