#342238#342238

#342238 is a dark, muted purple. Relative luminance 0.022; OKLCH L 28.4% C 0.046 H 320.2°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#342238
RGBrgb(52, 34, 56)
HSLhsl(289, 24%, 18%)
HSVhsv(289, 39%, 22%)
CMYKcmyk(7.1%, 39.3%, 0%, 78%)
CIE-LABlab(16.30, 13.36, -10.87)
CIE-LCHlch(16.30, 17.22, 320.85°)
OKLaboklab(28.38% 0.0356 -0.0297)
OKLCHoklch(28.38% 0.046 320.2)
XYZxyz(2.7019, 2.1597, 4.0152)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342238 #263822
analogous
#292238 #342238 #382231
triadic
#342238 #383422 #223834
tetradic
#342238 #382922 #263822 #223138
square
#342238 #382922 #263822 #223138
split-complementary
#342238 #313822 #223829
monochromatic
#120C13 #120C13 #342238 #57395E #7B5084

Accessibility & contrast

On white

14.66
#342238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#342238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342238
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342238#FFFFFF#000000##FFFFFF
##3422381.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2739
Deuteranopia (green-blind)
#242937
Tritanopia (blue-blind)
#34242A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #342238;
/* rgb */ color: rgb(52, 34, 56);
/* oklch */ color: oklch(28.4% 0.046 320.2);
Tailwind
colors: {
  custom: {
    50: '#6c5d6e',
    500: '#342238',
    950: '#000000',
  },
}
SCSS
$custom: #342238;
$custom-light: #6c5d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#342238",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 56
  },
  "hsl": {
    "h": 289.091,
    "s": 24.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2838,
    "c": 0.04634,
    "h": 320.2
  },
  "luminance": 0.0216
}

Semantic roles & 50–950 ramp

primary
#342238
secondary
#516A4B
accent
#C16777
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#070407
muted
#7A797A

Preview Lab

Preview with #342238

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

Preview Lab → · Contrast checker → · Palette generator →

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