#342D38#342D38

#342D38 is a dark, muted violet. Relative luminance 0.029; OKLCH L 30.9% C 0.022 H 313.3°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#342D38
RGBrgb(52, 45, 56)
HSLhsl(278, 11%, 20%)
HSVhsv(278, 20%, 22%)
CMYKcmyk(7.1%, 19.6%, 0%, 78%)
CIE-LABlab(19.61, 5.72, -5.85)
CIE-LCHlch(19.61, 8.18, 314.40°)
OKLaboklab(30.92% 0.0148 -0.0157)
OKLCHoklch(30.92% 0.022 313.3)
XYZxyz(3.0683, 2.8924, 4.1373)
Luminance0.0289 (WCAG relative)
Temperatureneutral
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D38 #31382D
analogous
#2F2D38 #342D38 #382D37
triadic
#342D38 #38342D #2D3834
tetradic
#342D38 #382F2D #31382D #2D3738
square
#342D38 #382F2D #31382D #2D3738
split-complementary
#342D38 #37382D #2D382F
monochromatic
#100E11 #141216 #342D38 #54485A #73647C

Accessibility & contrast

On white

13.30
#342D38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#342D38 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D38
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D38#FFFFFF#000000##FFFFFF
##342D381.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2F38
Deuteranopia (green-blind)
#2D3038
Tritanopia (blue-blind)
#342E31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #342d38;
/* rgb */ color: rgb(52, 45, 56);
/* oklch */ color: oklch(30.9% 0.022 313.3);
Tailwind
colors: {
  custom: {
    50: '#6b656e',
    500: '#342d38',
    950: '#000000',
  },
}
SCSS
$custom: #342d38;
$custom-light: #6b656e;
$custom-dark: #000000;
JSON
{
  "hex": "#342d38",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 56
  },
  "hsl": {
    "h": 278.182,
    "s": 10.891,
    "l": 19.804
  },
  "oklch": {
    "l": 0.30915,
    "c": 0.02163,
    "h": 313.3
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#342D38
secondary
#5E6859
accent
#B4748B
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060507
muted
#7A7A7A

Preview Lab

Preview with #342D38

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

Preview Lab → · Contrast checker → · Palette generator →

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