#342A3E#342A3E

#342A3E is a dark, muted violet. Relative luminance 0.027; OKLCH L 30.5% C 0.038 H 307.1°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#342A3E
RGBrgb(52, 42, 62)
HSLhsl(270, 19%, 20%)
HSVhsv(270, 32%, 24%)
CMYKcmyk(16.1%, 32.3%, 0%, 75.7%)
CIE-LABlab(18.94, 9.36, -10.99)
CIE-LCHlch(18.94, 14.43, 310.43°)
OKLaboklab(30.49% 0.0227 -0.0301)
OKLCHoklch(30.49% 0.038 307.1)
XYZxyz(3.1135, 2.7338, 4.9202)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A3E #343E2A
analogous
#2A2A3E #342A3E #3E2A3E
triadic
#342A3E #3E342A #2A3E34
tetradic
#342A3E #3E2A2A #343E2A #2A3E3E
square
#342A3E #3E2A2A #343E2A #2A3E3E
split-complementary
#342A3E #3E3E2A #2A3E2A
monochromatic
#0F0C12 #15111A #342A3E #534362 #715B87

Accessibility & contrast

On white

13.58
#342A3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#342A3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A3E
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A3E#FFFFFF#000000##FFFFFF
##342A3E1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262E3F
Deuteranopia (green-blind)
#282E3D
Tritanopia (blue-blind)
#332D31
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #342a3e;
/* rgb */ color: rgb(52, 42, 62);
/* oklch */ color: oklch(30.5% 0.038 307.1);
Tailwind
colors: {
  custom: {
    50: '#6b6373',
    500: '#342a3e',
    950: '#000000',
  },
}
SCSS
$custom: #342a3e;
$custom-light: #6b6373;
$custom-dark: #000000;
JSON
{
  "hex": "#342a3e",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 62
  },
  "hsl": {
    "h": 270,
    "s": 19.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.3049,
    "c": 0.0377,
    "h": 307.1
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#342A3E
secondary
#626F55
accent
#BC6C94
background
#F6F5F6
surface
#EBEAEC
border
#C6C6C7
text
#060508
muted
#7A797B

Preview Lab

Preview with #342A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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