#3C229D#3C229D

#3C229D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.184 H 282.8°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#3C229D
RGBrgb(60, 34, 157)
HSLhsl(253, 64%, 37%)
HSVhsv(253, 78%, 62%)
CMYKcmyk(61.8%, 78.3%, 0%, 38.4%)
CIE-LABlab(25.38, 45.42, -62.07)
CIE-LCHlch(25.38, 76.91, 306.19°)
OKLaboklab(37.7% 0.0407 -0.179)
OKLCHoklch(37.7% 0.184 282.8)
XYZxyz(8.5194, 4.5384, 32.3188)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C229D #839D22
analogous
#22459D #3C229D #7A229D
triadic
#3C229D #9D3C22 #229D3C
tetradic
#3C229D #9D2245 #839D22 #229D7A
square
#3C229D #9D2245 #839D22 #229D7A
split-complementary
#3C229D #9D7A22 #459D22
monochromatic
#160C38 #29176B #3C229D #4F2DCF #785DDC

Accessibility & contrast

On white

11.01
#3C229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3C229D
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C229D#FFFFFF#000000##FFFFFF
##3C229D1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3c229d;
/* rgb */ color: rgb(60, 34, 157);
/* oklch */ color: oklch(37.7% 0.184 282.8);
Tailwind
colors: {
  custom: {
    50: '#7e61bb',
    500: '#3c229d',
    950: '#000000',
  },
}
SCSS
$custom: #3c229d;
$custom-light: #7e61bb;
$custom-dark: #000000;
JSON
{
  "hex": "#3c229d",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 252.683,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37699,
    "c": 0.18357,
    "h": 282.8
  },
  "luminance": 0.04539
}

Semantic roles & 50–950 ramp

primary
#3C229D
secondary
#ABC15A
accent
#E740C4
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3C229D

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

Preview Lab → · Contrast checker → · Palette generator →

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