#342A42#342A42

#342A42 is a dark, muted violet. Relative luminance 0.028; OKLCH L 30.7% C 0.044 H 303.0°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#342A42
RGBrgb(52, 42, 66)
HSLhsl(265, 22%, 21%)
HSVhsv(265, 36%, 26%)
CMYKcmyk(21.2%, 36.4%, 0%, 74.1%)
CIE-LABlab(19.14, 10.45, -13.44)
CIE-LCHlch(19.14, 17.03, 307.88°)
OKLaboklab(30.7% 0.0241 -0.037)
OKLCHoklch(30.7% 0.044 303)
XYZxyz(3.2273, 2.7793, 5.5196)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A42 #38422A
analogous
#2A2C42 #342A42 #402A42
triadic
#342A42 #42342A #2A4234
tetradic
#342A42 #422A2C #38422A #2A4240
square
#342A42 #422A2C #38422A #2A4240
split-complementary
#342A42 #42402A #2C422A
monochromatic
#0F0C13 #17121D #342A42 #514267 #6F5A8D

Accessibility & contrast

On white

13.50
#342A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#342A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A42
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A42#FFFFFF#000000##FFFFFF
##342A421.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252E43
Deuteranopia (green-blind)
#272E41
Tritanopia (blue-blind)
#322E33
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #342a42;
/* rgb */ color: rgb(52, 42, 66);
/* oklch */ color: oklch(30.7% 0.044 303.0);
Tailwind
colors: {
  custom: {
    50: '#6c6376',
    500: '#342a42',
    950: '#000000',
  },
}
SCSS
$custom: #342a42;
$custom-light: #6c6376;
$custom-dark: #000000;
JSON
{
  "hex": "#342a42",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 66
  },
  "hsl": {
    "h": 265,
    "s": 22.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30701,
    "c": 0.04418,
    "h": 303
  },
  "luminance": 0.02779
}

Semantic roles & 50–950 ramp

primary
#342A42
secondary
#667354
accent
#BF699B
background
#F6F5F7
surface
#EBEAED
border
#C6C6C8
text
#070508
muted
#7A797B

Preview Lab

Preview with #342A42

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

Preview Lab → · Contrast checker → · Palette generator →

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