#342240#342240

#342240 is a dark, muted violet. Relative luminance 0.022; OKLCH L 28.8% C 0.058 H 310.8°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#342240
RGBrgb(52, 34, 64)
HSLhsl(276, 31%, 19%)
HSVhsv(276, 47%, 25%)
CMYKcmyk(18.8%, 46.9%, 0%, 74.9%)
CIE-LABlab(16.72, 15.44, -15.82)
CIE-LCHlch(16.72, 22.11, 314.32°)
OKLaboklab(28.83% 0.0378 -0.0438)
OKLCHoklch(28.83% 0.058 310.8)
XYZxyz(2.9134, 2.2443, 5.1292)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342240 #2E4022
analogous
#252240 #342240 #40223D
triadic
#342240 #403422 #224034
tetradic
#342240 #402522 #2E4022 #223D40
square
#342240 #402522 #2E4022 #223D40
split-complementary
#342240 #3D4022 #224025
monochromatic
#100B14 #140D18 #342240 #543768 #754C90

Accessibility & contrast

On white

14.49
#342240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#342240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342240
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342240#FFFFFF#000000##FFFFFF
##3422401.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2841
Deuteranopia (green-blind)
#202A3F
Tritanopia (blue-blind)
#33262E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #342240;
/* rgb */ color: rgb(52, 34, 64);
/* oklch */ color: oklch(28.8% 0.058 310.8);
Tailwind
colors: {
  custom: {
    50: '#6c5d75',
    500: '#342240',
    950: '#000000',
  },
}
SCSS
$custom: #342240;
$custom-light: #6c5d75;
$custom-dark: #000000;
JSON
{
  "hex": "#342240",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 276,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28832,
    "c": 0.05787,
    "h": 310.8
  },
  "luminance": 0.02244
}

Semantic roles & 50–950 ramp

primary
#342240
secondary
#5B734B
accent
#C7618A
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#070408
muted
#7A797B

Preview Lab

Preview with #342240

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

Preview Lab → · Contrast checker → · Palette generator →

#342240 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva