#342D40#342D40

#342D40 is a dark, muted violet. Relative luminance 0.030; OKLCH L 31.3% C 0.035 H 301.3°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#342D40
RGBrgb(52, 45, 64)
HSLhsl(262, 17%, 21%)
HSVhsv(262, 30%, 25%)
CMYKcmyk(18.8%, 29.7%, 0%, 74.9%)
CIE-LABlab(19.95, 7.82, -10.81)
CIE-LCHlch(19.95, 13.34, 305.86°)
OKLaboklab(31.29% 0.018 -0.0296)
OKLCHoklch(31.29% 0.035 301.3)
XYZxyz(3.2798, 2.9770, 5.2513)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D40 #39402D
analogous
#2D3040 #342D40 #3E2D40
triadic
#342D40 #40342D #2D4034
tetradic
#342D40 #402D30 #39402D #2D403E
square
#342D40 #402D30 #39402D #2D403E
split-complementary
#342D40 #403E2D #30402D
monochromatic
#0F0D12 #17141C #342D40 #514664 #6E6088

Accessibility & contrast

On white

13.16
#342D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#342D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D40
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D40#FFFFFF#000000##FFFFFF
##342D401.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293041
Deuteranopia (green-blind)
#2A303F
Tritanopia (blue-blind)
#323034
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #342d40;
/* rgb */ color: rgb(52, 45, 64);
/* oklch */ color: oklch(31.3% 0.035 301.3);
Tailwind
colors: {
  custom: {
    50: '#6b6574',
    500: '#342d40',
    950: '#000000',
  },
}
SCSS
$custom: #342d40;
$custom-light: #6b6574;
$custom-dark: #000000;
JSON
{
  "hex": "#342d40",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 64
  },
  "hsl": {
    "h": 262.105,
    "s": 17.431,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31294,
    "c": 0.03467,
    "h": 301.3
  },
  "luminance": 0.02977
}

Semantic roles & 50–950 ramp

primary
#342D40
secondary
#687158
accent
#BA6E9E
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060508
muted
#7A7A7B

Preview Lab

Preview with #342D40

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

Preview Lab → · Contrast checker → · Palette generator →

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