#3C229E#3C229E

#3C229E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.185 H 282.6°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#3C229E
RGBrgb(60, 34, 158)
HSLhsl(253, 65%, 38%)
HSVhsv(253, 78%, 62%)
CMYKcmyk(62%, 78.5%, 0%, 38%)
CIE-LABlab(25.48, 45.72, -62.51)
CIE-LCHlch(25.48, 77.44, 306.18°)
OKLaboklab(37.8% 0.0405 -0.1803)
OKLCHoklch(37.8% 0.185 282.6)
XYZxyz(8.6051, 4.5727, 32.7703)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C229E #849E22
analogous
#22469E #3C229E #7A229E
triadic
#3C229E #9E3C22 #229E3C
tetradic
#3C229E #9E2246 #849E22 #229E7A
square
#3C229E #9E2246 #849E22 #229E7A
split-complementary
#3C229E #9E7A22 #469E22
monochromatic
#160C39 #29176C #3C229E #4F2DD0 #795EDC

Accessibility & contrast

On white

10.97
#3C229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3C229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C229E
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C229E#FFFFFF#000000##FFFFFF
##3C229E1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3c229e;
/* rgb */ color: rgb(60, 34, 158);
/* oklch */ color: oklch(37.8% 0.185 282.6);
Tailwind
colors: {
  custom: {
    50: '#7f61bc',
    500: '#3c229e',
    950: '#000000',
  },
}
SCSS
$custom: #3c229e;
$custom-light: #7f61bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3c229e",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 252.581,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37802,
    "c": 0.18475,
    "h": 282.6
  },
  "luminance": 0.04573
}

Semantic roles & 50–950 ramp

primary
#3C229E
secondary
#ACC15B
accent
#E840C4
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3C229E

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

Preview Lab → · Contrast checker → · Palette generator →

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