#342F41#342F41

#342F41 is a dark, muted violet. Relative luminance 0.031; OKLCH L 31.8% C 0.032 H 297.3°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#342F41
RGBrgb(52, 47, 65)
HSLhsl(257, 16%, 22%)
HSVhsv(257, 28%, 25%)
CMYKcmyk(20%, 27.7%, 0%, 74.5%)
CIE-LABlab(20.61, 6.71, -10.48)
CIE-LCHlch(20.61, 12.45, 302.62°)
OKLaboklab(31.82% 0.0148 -0.0287)
OKLCHoklch(31.82% 0.032 297.3)
XYZxyz(3.3866, 3.1447, 5.4286)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F41 #3C412F
analogous
#2F3341 #342F41 #3D2F41
triadic
#342F41 #41342F #2F4134
tetradic
#342F41 #412F33 #3C412F #2F413D
square
#342F41 #412F33 #3C412F #2F413D
split-complementary
#342F41 #413D2F #33412F
monochromatic
#0E0D12 #18151D #342F41 #504965 #6D6288

Accessibility & contrast

On white

12.89
#342F41 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#342F41 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F41
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F41#FFFFFF#000000##FFFFFF
##342F411.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3242
Deuteranopia (green-blind)
#2C3140
Tritanopia (blue-blind)
#323235
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #342f41;
/* rgb */ color: rgb(52, 47, 65);
/* oklch */ color: oklch(31.8% 0.032 297.3);
Tailwind
colors: {
  custom: {
    50: '#6b6775',
    500: '#342f41',
    950: '#000000',
  },
}
SCSS
$custom: #342f41;
$custom-light: #6b6775;
$custom-dark: #000000;
JSON
{
  "hex": "#342f41",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 65
  },
  "hsl": {
    "h": 256.667,
    "s": 16.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31821,
    "c": 0.03229,
    "h": 297.3
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

primary
#342F41
secondary
#6B715A
accent
#B96FA4
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060608
muted
#7A7A7B

Preview Lab

Preview with #342F41

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

Preview Lab → · Contrast checker → · Palette generator →

#342F41 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva