#3C226A#3C226A

#3C226A is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.9% C 0.120 H 295.7°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#3C226A
RGBrgb(60, 34, 106)
HSLhsl(262, 51%, 27%)
HSVhsv(262, 68%, 42%)
CMYKcmyk(43.4%, 67.9%, 0%, 58.4%)
CIE-LABlab(20.62, 29.97, -37.75)
CIE-LCHlch(20.62, 48.20, 308.44°)
OKLaboklab(32.86% 0.0519 -0.1077)
OKLCHoklch(32.86% 0.12 295.7)
XYZxyz(5.0363, 3.1452, 13.9746)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C226A #506A22
analogous
#222C6A #3C226A #60226A
triadic
#3C226A #6A3C22 #226A3C
tetradic
#3C226A #6A222C #506A22 #226A60
square
#3C226A #6A222C #506A22 #226A60
split-complementary
#3C226A #6A6022 #2C6A22
monochromatic
#0D0717 #22133C #3C226A #563198 #7244C3

Accessibility & contrast

On white

12.89
#3C226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3C226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C226A
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C226A#FFFFFF#000000##FFFFFF
##3C226A1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#003168
Tritanopia (blue-blind)
#303342
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3c226a;
/* rgb */ color: rgb(60, 34, 106);
/* oklch */ color: oklch(32.9% 0.120 295.7);
Tailwind
colors: {
  custom: {
    50: '#765f95',
    500: '#3c226a',
    950: '#000000',
  },
}
SCSS
$custom: #3c226a;
$custom-light: #765f95;
$custom-dark: #000000;
JSON
{
  "hex": "#3c226a",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 261.667,
    "s": 51.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32861,
    "c": 0.11953,
    "h": 295.7
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

primary
#3C226A
secondary
#7F9E4A
accent
#DB4DA8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3C226A

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

Preview Lab → · Contrast checker → · Palette generator →

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