#342C40#342C40

#342C40 is a dark, muted violet. Relative luminance 0.029; OKLCH L 31.1% C 0.037 H 302.6°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#342C40
RGBrgb(52, 44, 64)
HSLhsl(264, 19%, 21%)
HSVhsv(264, 31%, 25%)
CMYKcmyk(18.8%, 31.2%, 0%, 74.9%)
CIE-LABlab(19.65, 8.51, -11.28)
CIE-LCHlch(19.65, 14.13, 307.03°)
OKLaboklab(31.06% 0.0198 -0.0309)
OKLCHoklch(31.06% 0.037 302.6)
XYZxyz(3.2421, 2.9016, 5.2388)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C40 #38402C
analogous
#2C2E40 #342C40 #3E2C40
triadic
#342C40 #40342C #2C4034
tetradic
#342C40 #402C2E #38402C #2C403E
square
#342C40 #402C2E #38402C #2C403E
split-complementary
#342C40 #403E2C #2E402C
monochromatic
#0F0C12 #17131C #342C40 #514564 #6F5E89

Accessibility & contrast

On white

13.29
#342C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#342C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C40
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C40#FFFFFF#000000##FFFFFF
##342C401.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282F41
Deuteranopia (green-blind)
#292F3F
Tritanopia (blue-blind)
#322F33
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #342c40;
/* rgb */ color: rgb(52, 44, 64);
/* oklch */ color: oklch(31.1% 0.037 302.6);
Tailwind
colors: {
  custom: {
    50: '#6b6574',
    500: '#342c40',
    950: '#000000',
  },
}
SCSS
$custom: #342c40;
$custom-light: #6b6574;
$custom-dark: #000000;
JSON
{
  "hex": "#342c40",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 64
  },
  "hsl": {
    "h": 264,
    "s": 18.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31059,
    "c": 0.03674,
    "h": 302.6
  },
  "luminance": 0.02902
}

Semantic roles & 50–950 ramp

primary
#342C40
secondary
#667157
accent
#BB6D9C
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060508
muted
#7A7A7B

Preview Lab

Preview with #342C40

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

Preview Lab → · Contrast checker → · Palette generator →

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