#340832#340832

#340832 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.7% C 0.090 H 329.9°. Best body text is #FFFFFF at 17.12:1 contrast (WCAG AA passes).

Color values

HEX#340832
RGBrgb(52, 8, 50)
HSLhsl(303, 73%, 12%)
HSVhsv(303, 85%, 20%)
CMYKcmyk(0%, 84.6%, 3.8%, 79.6%)
CIE-LABlab(10.06, 27.49, -16.31)
CIE-LCHlch(10.06, 31.96, 329.32°)
OKLaboklab(23.65% 0.0778 -0.045)
OKLCHoklch(23.65% 0.09 329.9)
XYZxyz(2.0787, 1.1342, 3.1264)
Luminance0.0113 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340832 #08340A
analogous
#200834 #340832 #34081C
triadic
#340832 #323408 #083234
tetradic
#340832 #342008 #08340A #081C34
square
#340832 #342008 #08340A #081C34
split-complementary
#340832 #1C3408 #083420
monochromatic
#1B041A #1B041A #340832 #691065 #9E1898

Accessibility & contrast

On white

17.12
#340832 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340832 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340832
17.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340832#FFFFFF#000000##FFFFFF
##3408321.0017.121.2317.12
#FFFFFF17.121.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041833
Deuteranopia (green-blind)
#151E31
Tritanopia (blue-blind)
#360E1C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340832;
/* rgb */ color: rgb(52, 8, 50);
/* oklch */ color: oklch(23.7% 0.090 329.9);
Tailwind
colors: {
  custom: {
    50: '#6e4d6a',
    500: '#340832',
    950: '#000000',
  },
}
SCSS
$custom: #340832;
$custom-light: #6e4d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#340832",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 50
  },
  "hsl": {
    "h": 302.727,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23652,
    "c": 0.08986,
    "h": 329.9
  },
  "luminance": 0.01134
}

Semantic roles & 50–950 ramp

primary
#340832
secondary
#257328
accent
#F04038
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340832

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

Preview Lab → · Contrast checker → · Palette generator →

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