#3C229F#3C229F

#3C229F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.186 H 282.5°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#3C229F
RGBrgb(60, 34, 159)
HSLhsl(252, 65%, 38%)
HSVhsv(252, 79%, 62%)
CMYKcmyk(62.3%, 78.6%, 0%, 37.6%)
CIE-LABlab(25.59, 46.02, -62.95)
CIE-LCHlch(25.59, 77.97, 306.17°)
OKLaboklab(37.91% 0.0402 -0.1815)
OKLCHoklch(37.91% 0.186 282.5)
XYZxyz(8.6916, 4.6073, 33.2255)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C229F #859F22
analogous
#22469F #3C229F #7A229F
triadic
#3C229F #9F3C22 #229F3C
tetradic
#3C229F #9F2246 #859F22 #229F7A
square
#3C229F #9F2246 #859F22 #229F7A
split-complementary
#3C229F #9F7A22 #469F22
monochromatic
#160C3A #29176D #3C229F #4F2DD1 #795FDD

Accessibility & contrast

On white

10.93
#3C229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3C229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C229F
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C229F#FFFFFF#000000##FFFFFF
##3C229F1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3c229f;
/* rgb */ color: rgb(60, 34, 159);
/* oklch */ color: oklch(37.9% 0.186 282.5);
Tailwind
colors: {
  custom: {
    50: '#7f61bd',
    500: '#3c229f',
    950: '#000000',
  },
}
SCSS
$custom: #3c229f;
$custom-light: #7f61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3c229f",
  "rgb": {
    "r": 60,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 252.48,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37906,
    "c": 0.18594,
    "h": 282.5
  },
  "luminance": 0.04608
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3C229F

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

Preview Lab → · Contrast checker → · Palette generator →

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