#340A34#340A34

#340A34 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.0% C 0.089 H 327.9°. Best body text is #FFFFFF at 16.95:1 contrast (WCAG AA passes).

Color values

HEX#340A34
RGBrgb(52, 10, 52)
HSLhsl(300, 68%, 12%)
HSVhsv(300, 81%, 20%)
CMYKcmyk(0%, 80.8%, 0%, 79.6%)
CIE-LABlab(10.52, 26.97, -17.04)
CIE-LCHlch(10.52, 31.90, 327.71°)
OKLaboklab(24.03% 0.0752 -0.0472)
OKLCHoklch(24.03% 0.089 327.9)
XYZxyz(2.1445, 1.1952, 3.3659)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A34 #0A340A
analogous
#1F0A34 #340A34 #340A1F
triadic
#340A34 #34340A #0A3434
tetradic
#340A34 #341F0A #0A340A #0A1F34
square
#340A34 #341F0A #0A340A #0A1F34
split-complementary
#340A34 #1F340A #0A341F
monochromatic
#1A051A #1A051A #340A34 #671467 #9B1E9B

Accessibility & contrast

On white

16.95
#340A34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340A34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A34
16.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A34#FFFFFF#000000##FFFFFF
##340A341.0016.951.2416.95
#FFFFFF16.951.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051935
Deuteranopia (green-blind)
#151E33
Tritanopia (blue-blind)
#36101E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340a34;
/* rgb */ color: rgb(52, 10, 52);
/* oklch */ color: oklch(24.0% 0.089 327.9);
Tailwind
colors: {
  custom: {
    50: '#6d4e6b',
    500: '#340a34',
    950: '#000000',
  },
}
SCSS
$custom: #340a34;
$custom-light: #6d4e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#340a34",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 52
  },
  "hsl": {
    "h": 300,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.24025,
    "c": 0.08876,
    "h": 327.9
  },
  "luminance": 0.01195
}

Semantic roles & 50–950 ramp

primary
#340A34
secondary
#287128
accent
#EB3D3D
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340A34

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

Preview Lab → · Contrast checker → · Palette generator →

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