#3C227A#3C227A

#3C227A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.140 H 290.6°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#3C227A
RGBrgb(60, 34, 122)
HSLhsl(258, 56%, 31%)
HSVhsv(258, 72%, 48%)
CMYKcmyk(50.8%, 72.1%, 0%, 52.2%)
CIE-LABlab(21.98, 34.80, -45.83)
CIE-LCHlch(21.98, 57.55, 307.21°)
OKLaboklab(34.27% 0.0494 -0.1314)
OKLCHoklch(34.27% 0.14 290.6)
XYZxyz(5.9474, 3.5096, 18.7726)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C227A #607A22
analogous
#22347A #3C227A #68227A
triadic
#3C227A #7A3C22 #227A3C
tetradic
#3C227A #7A2234 #607A22 #227A68
square
#3C227A #7A2234 #607A22 #227A68
split-complementary
#3C227A #7A6822 #347A22
monochromatic
#0D071A #24154A #3C227A #542FAA #704ACD

Accessibility & contrast

On white

12.34
#3C227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3C227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C227A
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C227A#FFFFFF#000000##FFFFFF
##3C227A1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003378
Tritanopia (blue-blind)
#27384B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3c227a;
/* rgb */ color: rgb(60, 34, 122);
/* oklch */ color: oklch(34.3% 0.140 290.6);
Tailwind
colors: {
  custom: {
    50: '#785fa1',
    500: '#3c227a',
    950: '#000000',
  },
}
SCSS
$custom: #3c227a;
$custom-light: #785fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#3c227a",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 257.727,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34266,
    "c": 0.14043,
    "h": 290.6
  },
  "luminance": 0.0351
}

Semantic roles & 50–950 ramp

primary
#3C227A
secondary
#90AD4B
accent
#E048B3
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3C227A

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

Preview Lab → · Contrast checker → · Palette generator →

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