#3A2E4A#3A2E4A

#3A2E4A is a dark, muted violet. Relative luminance 0.033; OKLCH L 32.7% C 0.051 H 303.4°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#3A2E4A
RGBrgb(58, 46, 74)
HSLhsl(266, 23%, 24%)
HSVhsv(266, 38%, 29%)
CMYKcmyk(21.6%, 37.8%, 0%, 71%)
CIE-LABlab(21.39, 12.15, -15.34)
CIE-LCHlch(21.39, 19.57, 308.40°)
OKLaboklab(32.71% 0.0279 -0.0424)
OKLCHoklch(32.71% 0.051 303.4)
XYZxyz(3.9577, 3.3479, 6.9150)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2E4A #3E4A2E
analogous
#2E304A #3A2E4A #482E4A
triadic
#3A2E4A #4A3A2E #2E4A3A
tetradic
#3A2E4A #4A2E30 #3E4A2E #2E4A48
square
#3A2E4A #4A2E30 #3E4A2E #2E4A48
split-complementary
#3A2E4A #4A482E #304A2E
monochromatic
#0F0C13 #1C1724 #3A2E4A #584570 #755D95

Accessibility & contrast

On white

12.58
#3A2E4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3A2E4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2E4A
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2E4A#FFFFFF#000000##FFFFFF
##3A2E4A1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28334B
Deuteranopia (green-blind)
#2A3349
Tritanopia (blue-blind)
#373238
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a2e4a;
/* rgb */ color: rgb(58, 46, 74);
/* oklch */ color: oklch(32.7% 0.051 303.4);
Tailwind
colors: {
  custom: {
    50: '#70667c',
    500: '#3a2e4a',
    950: '#000000',
  },
}
SCSS
$custom: #3a2e4a;
$custom-light: #70667c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2e4a",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 74
  },
  "hsl": {
    "h": 265.714,
    "s": 23.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.32709,
    "c": 0.05075,
    "h": 303.4
  },
  "luminance": 0.03348
}

Semantic roles & 50–950 ramp

primary
#3A2E4A
secondary
#6C7B59
accent
#C0689A
background
#F6F6F7
surface
#ECEBEE
border
#C7C6C9
text
#070609
muted
#7A7A7B

Preview Lab

Preview with #3A2E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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