#340636#340636

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

Color values

HEX#340636
RGBrgb(52, 6, 54)
HSLhsl(298, 80%, 12%)
HSVhsv(298, 89%, 21%)
CMYKcmyk(3.7%, 88.9%, 0%, 78.8%)
CIE-LABlab(10.01, 29.25, -19.32)
CIE-LCHlch(10.01, 35.05, 326.56°)
OKLaboklab(23.7% 0.0804 -0.0537)
OKLCHoklch(23.7% 0.097 326.3)
XYZxyz(2.1471, 1.1268, 3.5937)
Luminance0.0113 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340636 #083606
analogous
#1C0636 #340636 #360620
triadic
#340636 #363406 #063634
tetradic
#340636 #361C06 #083606 #062036
square
#340636 #361C06 #083606 #062036
split-complementary
#340636 #203606 #06361C
monochromatic
#1B031C #1B031C #340636 #690C6D #9E12A4

Accessibility & contrast

On white

17.14
#340636 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340636
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340636#FFFFFF#000000##FFFFFF
##3406361.0017.141.2317.14
#FFFFFF17.141.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001837
Deuteranopia (green-blind)
#111D35
Tritanopia (blue-blind)
#360E1E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340636;
/* rgb */ color: rgb(52, 6, 54);
/* oklch */ color: oklch(23.7% 0.097 326.3);
Tailwind
colors: {
  custom: {
    50: '#6e4c6d',
    500: '#340636',
    950: '#000000',
  },
}
SCSS
$custom: #340636;
$custom-light: #6e4c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#340636",
  "rgb": {
    "r": 52,
    "g": 6,
    "b": 54
  },
  "hsl": {
    "h": 297.5,
    "s": 80,
    "l": 11.765
  },
  "oklch": {
    "l": 0.237,
    "c": 0.09672,
    "h": 326.3
  },
  "luminance": 0.01127
}

Semantic roles & 50–950 ramp

primary
#340636
secondary
#257621
accent
#F6313A
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340636

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

Preview Lab → · Contrast checker → · Palette generator →

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