#3A229A#3A229A

#3A229A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.180 H 282.3°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#3A229A
RGBrgb(58, 34, 154)
HSLhsl(252, 64%, 37%)
HSVhsv(252, 78%, 60%)
CMYKcmyk(62.3%, 77.9%, 0%, 39.6%)
CIE-LABlab(24.88, 44.27, -61.07)
CIE-LCHlch(24.88, 75.42, 305.94°)
OKLaboklab(37.21% 0.0386 -0.1761)
OKLCHoklch(37.21% 0.18 282.3)
XYZxyz(8.1479, 4.3761, 30.9809)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A229A #829A22
analogous
#22469A #3A229A #76229A
triadic
#3A229A #9A3A22 #229A3A
tetradic
#3A229A #9A2246 #829A22 #229A76
square
#3A229A #9A2246 #829A22 #229A76
split-complementary
#3A229A #9A7622 #469A22
monochromatic
#140C36 #271768 #3A229A #4D2DCC #755BDB

Accessibility & contrast

On white

11.20
#3A229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3A229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A229A
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A229A#FFFFFF#000000##FFFFFF
##3A229A1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003798
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a229a;
/* rgb */ color: rgb(58, 34, 154);
/* oklch */ color: oklch(37.2% 0.180 282.3);
Tailwind
colors: {
  custom: {
    50: '#7d61b9',
    500: '#3a229a',
    950: '#000000',
  },
}
SCSS
$custom: #3a229a;
$custom-light: #7d61b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3a229a",
  "rgb": {
    "r": 58,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 252,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3721,
    "c": 0.18028,
    "h": 282.3
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A229A

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

Preview Lab → · Contrast checker → · Palette generator →

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