#3A2A4C#3A2A4C

#3A2A4C is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.0% C 0.062 H 304.8°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#3A2A4C
RGBrgb(58, 42, 76)
HSLhsl(268, 29%, 23%)
HSVhsv(268, 45%, 30%)
CMYKcmyk(23.7%, 44.7%, 0%, 70.2%)
CIE-LABlab(20.35, 15.43, -18.30)
CIE-LCHlch(20.35, 23.94, 310.14°)
OKLaboklab(31.96% 0.0354 -0.0509)
OKLCHoklch(31.96% 0.062 304.8)
XYZxyz(3.8771, 3.0773, 7.2258)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2A4C #3C4C2A
analogous
#2A2B4C #3A2A4C #4B2A4C
triadic
#3A2A4C #4C3A2A #2A4C3A
tetradic
#3A2A4C #4C2A2B #3C4C2A #2A4C4B
square
#3A2A4C #4C2A2B #3C4C2A #2A4C4B
split-complementary
#3A2A4C #4C4B2A #2B4C2A
monochromatic
#0F0B14 #1C1425 #3A2A4C #584073 #76569B

Accessibility & contrast

On white

13.00
#3A2A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A2A4C
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2A4C#FFFFFF#000000##FFFFFF
##3A2A4C1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22314D
Deuteranopia (green-blind)
#26314B
Tritanopia (blue-blind)
#372F37
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3a2a4c;
/* rgb */ color: rgb(58, 42, 76);
/* oklch */ color: oklch(32.0% 0.062 304.8);
Tailwind
colors: {
  custom: {
    50: '#71637e',
    500: '#3a2a4c',
    950: '#000000',
  },
}
SCSS
$custom: #3a2a4c;
$custom-light: #71637e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2a4c",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 76
  },
  "hsl": {
    "h": 268.235,
    "s": 28.814,
    "l": 23.137
  },
  "oklch": {
    "l": 0.31957,
    "c": 0.06196,
    "h": 304.8
  },
  "luminance": 0.03077
}

Semantic roles & 50–950 ramp

primary
#3A2A4C
secondary
#6A7E54
accent
#C56397
background
#F6F5F7
surface
#ECEAEE
border
#C7C6C9
text
#07050A
muted
#7A797C

Preview Lab

Preview with #3A2A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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