#340637#340637

#340637 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.8% C 0.098 H 325.4°. Best body text is #FFFFFF at 17.11:1 contrast (WCAG AA passes).

Color values

HEX#340637
RGBrgb(52, 6, 55)
HSLhsl(296, 80%, 12%)
HSVhsv(296, 89%, 22%)
CMYKcmyk(5.5%, 89.1%, 0%, 78.4%)
CIE-LABlab(10.08, 29.45, -19.93)
CIE-LCHlch(10.08, 35.56, 325.92°)
OKLaboklab(23.78% 0.0804 -0.0555)
OKLCHoklch(23.78% 0.098 325.4)
XYZxyz(2.1708, 1.1363, 3.7187)
Luminance0.0114 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340637 #093706
analogous
#1C0637 #340637 #370622
triadic
#340637 #373406 #063734
tetradic
#340637 #371C06 #093706 #062237
square
#340637 #371C06 #093706 #062237
split-complementary
#340637 #223706 #06371C
monochromatic
#1A031C #1A031C #340637 #680C6E #9C12A5

Accessibility & contrast

On white

17.11
#340637 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340637
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340637#FFFFFF#000000##FFFFFF
##3406371.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001838
Deuteranopia (green-blind)
#111E36
Tritanopia (blue-blind)
#350F1E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340637;
/* rgb */ color: rgb(52, 6, 55);
/* oklch */ color: oklch(23.8% 0.098 325.4);
Tailwind
colors: {
  custom: {
    50: '#6e4c6e',
    500: '#340637',
    950: '#000000',
  },
}
SCSS
$custom: #340637;
$custom-light: #6e4c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#340637",
  "rgb": {
    "r": 52,
    "g": 6,
    "b": 55
  },
  "hsl": {
    "h": 296.327,
    "s": 80.328,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23775,
    "c": 0.09766,
    "h": 325.4
  },
  "luminance": 0.01136
}

Semantic roles & 50–950 ramp

primary
#340637
secondary
#277721
accent
#F7313D
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340637

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

Preview Lab → · Contrast checker → · Palette generator →

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