#342C3A#342C3A

#342C3A is a dark, muted violet. Relative luminance 0.028; OKLCH L 30.8% C 0.027 H 310.5°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#342C3A
RGBrgb(52, 44, 58)
HSLhsl(274, 14%, 20%)
HSVhsv(274, 24%, 23%)
CMYKcmyk(10.3%, 24.1%, 0%, 77.3%)
CIE-LABlab(19.38, 6.92, -7.57)
CIE-LCHlch(19.38, 10.26, 312.43°)
OKLaboklab(30.76% 0.0175 -0.0205)
OKLCHoklch(30.76% 0.027 310.5)
XYZxyz(3.0804, 2.8369, 4.3875)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C3A #323A2C
analogous
#2D2C3A #342C3A #3A2C39
triadic
#342C3A #3A342C #2C3A34
tetradic
#342C3A #3A2D2C #323A2C #2C393A
square
#342C3A #3A2D2C #323A2C #2C393A
split-complementary
#342C3A #393A2C #2C3A2D
monochromatic
#100D11 #151217 #342C3A #53465D #726180

Accessibility & contrast

On white

13.40
#342C3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#342C3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C3A
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C3A#FFFFFF#000000##FFFFFF
##342C3A1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2F3B
Deuteranopia (green-blind)
#2B2F3A
Tritanopia (blue-blind)
#332E31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #342c3a;
/* rgb */ color: rgb(52, 44, 58);
/* oklch */ color: oklch(30.8% 0.027 310.5);
Tailwind
colors: {
  custom: {
    50: '#6b6570',
    500: '#342c3a',
    950: '#000000',
  },
}
SCSS
$custom: #342c3a;
$custom-light: #6b6570;
$custom-dark: #000000;
JSON
{
  "hex": "#342c3a",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 58
  },
  "hsl": {
    "h": 274.286,
    "s": 13.725,
    "l": 20
  },
  "oklch": {
    "l": 0.30765,
    "c": 0.02698,
    "h": 310.5
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#342C3A
secondary
#606A58
accent
#B7718F
background
#F6F6F6
surface
#EBEBEC
border
#C6C6C7
text
#060507
muted
#7A7A7A

Preview Lab

Preview with #342C3A

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

Preview Lab → · Contrast checker → · Palette generator →

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