#3A229C#3A229C

#3A229C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.183 H 282.0°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#3A229C
RGBrgb(58, 34, 156)
HSLhsl(252, 64%, 37%)
HSVhsv(252, 78%, 61%)
CMYKcmyk(62.8%, 78.2%, 0%, 38.8%)
CIE-LABlab(25.09, 44.87, -61.95)
CIE-LCHlch(25.09, 76.49, 305.92°)
OKLaboklab(37.42% 0.038 -0.1787)
OKLCHoklch(37.42% 0.183 282)
XYZxyz(8.3158, 4.4433, 31.8655)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A229C #849C22
analogous
#22479C #3A229C #77229C
triadic
#3A229C #9C3A22 #229C3A
tetradic
#3A229C #9C2247 #849C22 #229C77
square
#3A229C #9C2247 #849C22 #229C77
split-complementary
#3A229C #9C7722 #479C22
monochromatic
#150C38 #27176A #3A229C #4D2DCE #765DDC

Accessibility & contrast

On white

11.12
#3A229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3A229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A229C
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A229C#FFFFFF#000000##FFFFFF
##3A229C1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00379A
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a229c;
/* rgb */ color: rgb(58, 34, 156);
/* oklch */ color: oklch(37.4% 0.183 282.0);
Tailwind
colors: {
  custom: {
    50: '#7d61ba',
    500: '#3a229c',
    950: '#000000',
  },
}
SCSS
$custom: #3a229c;
$custom-light: #7d61ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3a229c",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 251.803,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37418,
    "c": 0.18268,
    "h": 282
  },
  "luminance": 0.04444
}

Semantic roles & 50–950 ramp

primary
#3A229C
secondary
#ACC05A
accent
#E741C6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A229C

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

Preview Lab → · Contrast checker → · Palette generator →

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