#340A39#340A39

#340A39 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.4% C 0.094 H 323.3°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#340A39
RGBrgb(52, 10, 57)
HSLhsl(294, 70%, 13%)
HSVhsv(294, 82%, 22%)
CMYKcmyk(8.8%, 82.5%, 0%, 77.6%)
CIE-LABlab(10.87, 28.03, -20.11)
CIE-LCHlch(10.87, 34.50, 324.35°)
OKLaboklab(24.39% 0.0752 -0.0561)
OKLCHoklch(24.39% 0.094 323.3)
XYZxyz(2.2632, 1.2427, 3.9908)
Luminance0.0124 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A39 #0F390A
analogous
#1C0A39 #340A39 #390A26
triadic
#340A39 #39340A #0A3934
tetradic
#340A39 #391C0A #0F390A #0A2639
square
#340A39 #391C0A #0F390A #0A2639
split-complementary
#340A39 #26390A #0A391C
monochromatic
#18051A #18051A #340A39 #63136D #931CA1

Accessibility & contrast

On white

16.82
#340A39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A39
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A39#FFFFFF#000000##FFFFFF
##340A391.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3A
Deuteranopia (green-blind)
#121F38
Tritanopia (blue-blind)
#351220
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340a39;
/* rgb */ color: rgb(52, 10, 57);
/* oklch */ color: oklch(24.4% 0.094 323.3);
Tailwind
colors: {
  custom: {
    50: '#6e4e6f',
    500: '#340a39',
    950: '#000000',
  },
}
SCSS
$custom: #340a39;
$custom-light: #6e4e6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340a39",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 57
  },
  "hsl": {
    "h": 293.617,
    "s": 70.149,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24385,
    "c": 0.09378,
    "h": 323.3
  },
  "luminance": 0.01243
}

Semantic roles & 50–950 ramp

primary
#340A39
secondary
#317628
accent
#ED3B4E
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340A39

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

Preview Lab → · Contrast checker → · Palette generator →

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