#3A2A4F#3A2A4F

#3A2A4F is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.1% C 0.067 H 302.8°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#3A2A4F
RGBrgb(58, 42, 79)
HSLhsl(266, 31%, 24%)
HSVhsv(266, 47%, 31%)
CMYKcmyk(26.6%, 46.8%, 0%, 69%)
CIE-LABlab(20.52, 16.28, -20.06)
CIE-LCHlch(20.52, 25.83, 309.06°)
OKLaboklab(32.14% 0.036 -0.056)
OKLCHoklch(32.14% 0.067 302.8)
XYZxyz(3.9839, 3.1200, 7.7880)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2A4F #3F4F2A
analogous
#2A2C4F #3A2A4F #4C2A4F
triadic
#3A2A4F #4F3A2A #2A4F3A
tetradic
#3A2A4F #4F2A2C #3F4F2A #2A4F4C
square
#3A2A4F #4F2A2C #3F4F2A #2A4F4C
split-complementary
#3A2A4F #4F4C2A #2C4F2A
monochromatic
#0F0B14 #1D1527 #3A2A4F #573F77 #75549F

Accessibility & contrast

On white

12.93
#3A2A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3A2A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2A4F
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2A4F#FFFFFF#000000##FFFFFF
##3A2A4F1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203150
Deuteranopia (green-blind)
#24314E
Tritanopia (blue-blind)
#363038
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a2a4f;
/* rgb */ color: rgb(58, 42, 79);
/* oklch */ color: oklch(32.1% 0.067 302.8);
Tailwind
colors: {
  custom: {
    50: '#716380',
    500: '#3a2a4f',
    950: '#000000',
  },
}
SCSS
$custom: #3a2a4f;
$custom-light: #716380;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2a4f",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 79
  },
  "hsl": {
    "h": 265.946,
    "s": 30.579,
    "l": 23.725
  },
  "oklch": {
    "l": 0.32138,
    "c": 0.06656,
    "h": 302.8
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#3A2A4F
secondary
#6D8154
accent
#C7619B
background
#F6F5F7
surface
#ECEAEE
border
#C7C6C9
text
#08050A
muted
#7B797C

Preview Lab

Preview with #3A2A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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