#3A2F4E#3A2F4E

#3A2F4E is a dark, muted violet. Relative luminance 0.035; OKLCH L 33.2% C 0.055 H 299.7°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#3A2F4E
RGBrgb(58, 47, 78)
HSLhsl(261, 25%, 25%)
HSVhsv(261, 40%, 31%)
CMYKcmyk(25.6%, 39.7%, 0%, 69.4%)
CIE-LABlab(21.88, 12.59, -17.25)
CIE-LCHlch(21.88, 21.36, 306.12°)
OKLaboklab(33.15% 0.0273 -0.0479)
OKLCHoklch(33.15% 0.055 299.7)
XYZxyz(4.1363, 3.4826, 7.6605)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2F4E #434E2F
analogous
#2F344E #3A2F4E #4A2F4E
triadic
#3A2F4E #4E3A2F #2F4E3A
tetradic
#3A2F4E #4E2F34 #434E2F #2F4E4A
square
#3A2F4E #4E2F34 #434E2F #2F4E4A
split-complementary
#3A2F4E #4E4A2F #344E2F
monochromatic
#0E0C13 #1E1828 #3A2F4E #564674 #735D9A

Accessibility & contrast

On white

12.38
#3A2F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3A2F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2F4E
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2F4E#FFFFFF#000000##FFFFFF
##3A2F4E1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28344F
Deuteranopia (green-blind)
#29344D
Tritanopia (blue-blind)
#36343A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a2f4e;
/* rgb */ color: rgb(58, 47, 78);
/* oklch */ color: oklch(33.2% 0.055 299.7);
Tailwind
colors: {
  custom: {
    50: '#71677f',
    500: '#3a2f4e',
    950: '#000000',
  },
}
SCSS
$custom: #3a2f4e;
$custom-light: #71677f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2f4e",
  "rgb": {
    "r": 58,
    "g": 47,
    "b": 78
  },
  "hsl": {
    "h": 261.29,
    "s": 24.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.33154,
    "c": 0.05513,
    "h": 299.7
  },
  "luminance": 0.03483
}

Semantic roles & 50–950 ramp

primary
#3A2F4E
secondary
#727F5A
accent
#C167A1
background
#F6F6F7
surface
#ECEBEE
border
#C7C6C9
text
#07060A
muted
#7A7A7C

Preview Lab

Preview with #3A2F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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