#342C42#342C42

#342C42 is a dark, muted violet. Relative luminance 0.029; OKLCH L 31.2% C 0.040 H 300.8°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#342C42
RGBrgb(52, 44, 66)
HSLhsl(262, 20%, 22%)
HSVhsv(262, 33%, 26%)
CMYKcmyk(21.2%, 33.3%, 0%, 74.1%)
CIE-LABlab(19.74, 9.06, -12.51)
CIE-LCHlch(19.74, 15.45, 305.93°)
OKLaboklab(31.16% 0.0205 -0.0344)
OKLCHoklch(31.16% 0.04 300.8)
XYZxyz(3.3000, 2.9248, 5.5439)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C42 #3A422C
analogous
#2C2F42 #342C42 #3F2C42
triadic
#342C42 #42342C #2C4234
tetradic
#342C42 #422C2F #3A422C #2C423F
square
#342C42 #422C2F #3A422C #2C423F
split-complementary
#342C42 #423F2C #2F422C
monochromatic
#0E0C12 #17141D #342C42 #514467 #6E5D8B

Accessibility & contrast

On white

13.25
#342C42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342C42
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C42#FFFFFF#000000##FFFFFF
##342C421.0013.251.5913.25
#FFFFFF13.251.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273043
Deuteranopia (green-blind)
#293041
Tritanopia (blue-blind)
#322F34
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #342c42;
/* rgb */ color: rgb(52, 44, 66);
/* oklch */ color: oklch(31.2% 0.040 300.8);
Tailwind
colors: {
  custom: {
    50: '#6b6576',
    500: '#342c42',
    950: '#000000',
  },
}
SCSS
$custom: #342c42;
$custom-light: #6b6576;
$custom-dark: #000000;
JSON
{
  "hex": "#342c42",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 66
  },
  "hsl": {
    "h": 261.818,
    "s": 20,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31163,
    "c": 0.04005,
    "h": 300.8
  },
  "luminance": 0.02925
}

Semantic roles & 50–950 ramp

primary
#342C42
secondary
#697357
accent
#BD6B9F
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#070508
muted
#7A7A7B

Preview Lab

Preview with #342C42

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

Preview Lab → · Contrast checker → · Palette generator →

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