#340D35#340D35

#340D35 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.5% C 0.085 H 326.8°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#340D35
RGBrgb(52, 13, 53)
HSLhsl(299, 61%, 13%)
HSVhsv(299, 75%, 21%)
CMYKcmyk(1.9%, 75.5%, 0%, 79.2%)
CIE-LABlab(11.10, 25.74, -16.85)
CIE-LCHlch(11.10, 30.77, 326.79°)
OKLaboklab(24.46% 0.0712 -0.0466)
OKLCHoklch(24.46% 0.085 326.8)
XYZxyz(2.2027, 1.2751, 3.4976)
Luminance0.0127 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D35 #0E350D
analogous
#200D35 #340D35 #350D22
triadic
#340D35 #35340D #0D3534
tetradic
#340D35 #35200D #0E350D #0D2235
square
#340D35 #35200D #0E350D #0D2235
split-complementary
#340D35 #22350D #0D3520
monochromatic
#180619 #180619 #340D35 #641966 #942597

Accessibility & contrast

On white

16.73
#340D35 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#340D35 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D35
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D35#FFFFFF#000000##FFFFFF
##340D351.0016.731.2516.73
#FFFFFF16.731.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071A36
Deuteranopia (green-blind)
#161F34
Tritanopia (blue-blind)
#36131F
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340d35;
/* rgb */ color: rgb(52, 13, 53);
/* oklch */ color: oklch(24.5% 0.085 326.8);
Tailwind
colors: {
  custom: {
    50: '#6d4f6c',
    500: '#340d35',
    950: '#000000',
  },
}
SCSS
$custom: #340d35;
$custom-light: #6d4f6c;
$custom-dark: #000000;
JSON
{
  "hex": "#340d35",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 53
  },
  "hsl": {
    "h": 298.5,
    "s": 60.606,
    "l": 12.941
  },
  "oklch": {
    "l": 0.24463,
    "c": 0.08511,
    "h": 326.8
  },
  "luminance": 0.01275
}

Semantic roles & 50–950 ramp

primary
#340D35
secondary
#2F702D
accent
#E44448
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070207
muted
#7A787A

Preview Lab

Preview with #340D35

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

Preview Lab → · Contrast checker → · Palette generator →

#340D35 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva