#342D3D#342D3D

#342D3D is a dark, muted violet. Relative luminance 0.029; OKLCH L 31.1% C 0.030 H 304.7°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#342D3D
RGBrgb(52, 45, 61)
HSLhsl(266, 15%, 21%)
HSVhsv(266, 26%, 24%)
CMYKcmyk(14.8%, 26.2%, 0%, 76.1%)
CIE-LABlab(19.82, 7.01, -8.97)
CIE-LCHlch(19.82, 11.38, 308.02°)
OKLaboklab(31.15% 0.0169 -0.0244)
OKLCHoklch(31.15% 0.03 304.7)
XYZxyz(3.1967, 2.9438, 4.8138)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D3D #363D2D
analogous
#2D2E3D #342D3D #3C2D3D
triadic
#342D3D #3D342D #2D3D34
tetradic
#342D3D #3D2D2E #363D2D #2D3D3C
square
#342D3D #3D2D2E #363D2D #2D3D3C
split-complementary
#342D3D #3D3C2D #2E3D2D
monochromatic
#0F0D12 #16131A #342D3D #524760 #706183

Accessibility & contrast

On white

13.22
#342D3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#342D3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D3D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D3D#FFFFFF#000000##FFFFFF
##342D3D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A303E
Deuteranopia (green-blind)
#2B303D
Tritanopia (blue-blind)
#332F32
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #342d3d;
/* rgb */ color: rgb(52, 45, 61);
/* oklch */ color: oklch(31.1% 0.030 304.7);
Tailwind
colors: {
  custom: {
    50: '#6b6572',
    500: '#342d3d',
    950: '#000000',
  },
}
SCSS
$custom: #342d3d;
$custom-light: #6b6572;
$custom-dark: #000000;
JSON
{
  "hex": "#342d3d",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 61
  },
  "hsl": {
    "h": 266.25,
    "s": 15.094,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31147,
    "c": 0.02969,
    "h": 304.7
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#342D3D
secondary
#646D58
accent
#B87098
background
#F6F6F6
surface
#EBEBEC
border
#C6C6C7
text
#060508
muted
#7A7A7B

Preview Lab

Preview with #342D3D

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

Preview Lab → · Contrast checker → · Palette generator →

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