#340736#340736

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

Color values

HEX#340736
RGBrgb(52, 7, 54)
HSLhsl(297, 77%, 12%)
HSVhsv(297, 87%, 21%)
CMYKcmyk(3.7%, 87%, 0%, 78.8%)
CIE-LABlab(10.17, 28.77, -19.05)
CIE-LCHlch(10.17, 34.51, 326.49°)
OKLaboklab(23.82% 0.0791 -0.053)
OKLCHoklch(23.82% 0.095 326.2)
XYZxyz(2.1580, 1.1485, 3.5973)
Luminance0.0115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340736 #093607
analogous
#1D0736 #340736 #360721
triadic
#340736 #363407 #073634
tetradic
#340736 #361D07 #093607 #072136
square
#340736 #361D07 #093607 #072136
split-complementary
#340736 #213607 #07361D
monochromatic
#1A041B #1A041B #340736 #680E6C #9C15A2

Accessibility & contrast

On white

17.08
#340736 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340736
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340736#FFFFFF#000000##FFFFFF
##3407361.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001837
Deuteranopia (green-blind)
#121E35
Tritanopia (blue-blind)
#360F1E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340736;
/* rgb */ color: rgb(52, 7, 54);
/* oklch */ color: oklch(23.8% 0.095 326.2);
Tailwind
colors: {
  custom: {
    50: '#6e4c6d',
    500: '#340736',
    950: '#000000',
  },
}
SCSS
$custom: #340736;
$custom-light: #6e4c6d;
$custom-dark: #000000;
JSON
{
  "hex": "#340736",
  "rgb": {
    "r": 52,
    "g": 7,
    "b": 54
  },
  "hsl": {
    "h": 297.447,
    "s": 77.049,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23818,
    "c": 0.09519,
    "h": 326.2
  },
  "luminance": 0.01148
}

Semantic roles & 50–950 ramp

primary
#340736
secondary
#277623
accent
#F4343C
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340736

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

Preview Lab → · Contrast checker → · Palette generator →

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