#3A2E4C#3A2E4C

#3A2E4C is a dark, muted violet. Relative luminance 0.034; OKLCH L 32.8% C 0.054 H 301.9°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#3A2E4C
RGBrgb(58, 46, 76)
HSLhsl(264, 25%, 24%)
HSVhsv(264, 39%, 30%)
CMYKcmyk(23.7%, 39.5%, 0%, 70.2%)
CIE-LABlab(21.49, 12.71, -16.52)
CIE-LCHlch(21.49, 20.84, 307.56°)
OKLaboklab(32.82% 0.0285 -0.0458)
OKLCHoklch(32.82% 0.054 301.9)
XYZxyz(4.0261, 3.3753, 7.2755)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2E4C #404C2E
analogous
#2E314C #3A2E4C #492E4C
triadic
#3A2E4C #4C3A2E #2E4C3A
tetradic
#3A2E4C #4C2E31 #404C2E #2E4C49
square
#3A2E4C #4C2E31 #404C2E #2E4C49
split-complementary
#3A2E4C #4C492E #314C2E
monochromatic
#0F0C13 #1D1726 #3A2E4C #574572 #745C98

Accessibility & contrast

On white

12.54
#3A2E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#3A2E4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2E4C
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2E4C#FFFFFF#000000##FFFFFF
##3A2E4C1.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27334D
Deuteranopia (green-blind)
#29334B
Tritanopia (blue-blind)
#373339
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a2e4c;
/* rgb */ color: rgb(58, 46, 76);
/* oklch */ color: oklch(32.8% 0.054 301.9);
Tailwind
colors: {
  custom: {
    50: '#71667e',
    500: '#3a2e4c',
    950: '#000000',
  },
}
SCSS
$custom: #3a2e4c;
$custom-light: #71667e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2e4c",
  "rgb": {
    "r": 58,
    "g": 46,
    "b": 76
  },
  "hsl": {
    "h": 264,
    "s": 24.59,
    "l": 23.922
  },
  "oklch": {
    "l": 0.3282,
    "c": 0.05392,
    "h": 301.9
  },
  "luminance": 0.03375
}

Semantic roles & 50–950 ramp

primary
#3A2E4C
secondary
#6F7D59
accent
#C1679D
background
#F6F6F7
surface
#ECEBEE
border
#C7C6C9
text
#07060A
muted
#7A7A7C

Preview Lab

Preview with #3A2E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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