#340E3A#340E3A

#340E3A is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.9% C 0.089 H 322.0°. Best body text is #FFFFFF at 16.54:1 contrast (WCAG AA passes).

Color values

HEX#340E3A
RGBrgb(52, 14, 58)
HSLhsl(292, 61%, 14%)
HSVhsv(292, 76%, 23%)
CMYKcmyk(10.3%, 75.9%, 0%, 77.3%)
CIE-LABlab(11.62, 26.34, -19.63)
CIE-LCHlch(11.62, 32.85, 323.31°)
OKLaboklab(24.95% 0.0699 -0.0547)
OKLCHoklch(24.95% 0.089 322)
XYZxyz(2.3369, 1.3498, 4.1396)
Luminance0.0135 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E3A #143A0E
analogous
#1E0E3A #340E3A #3A0E2A
triadic
#340E3A #3A340E #0E3A34
tetradic
#340E3A #3A1E0E #143A0E #0E2A3A
square
#340E3A #3A1E0E #143A0E #0E2A3A
split-complementary
#340E3A #2A3A0E #0E3A1E
monochromatic
#160619 #160619 #340E3A #601A6B #8C269D

Accessibility & contrast

On white

16.54
#340E3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#340E3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340E3A
16.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E3A#FFFFFF#000000##FFFFFF
##340E3A1.0016.541.2716.54
#FFFFFF16.541.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3B
Deuteranopia (green-blind)
#132039
Tritanopia (blue-blind)
#351522
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340e3a;
/* rgb */ color: rgb(52, 14, 58);
/* oklch */ color: oklch(24.9% 0.089 322.0);
Tailwind
colors: {
  custom: {
    50: '#6d5070',
    500: '#340e3a',
    950: '#000000',
  },
}
SCSS
$custom: #340e3a;
$custom-light: #6d5070;
$custom-dark: #000000;
JSON
{
  "hex": "#340e3a",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 58
  },
  "hsl": {
    "h": 291.818,
    "s": 61.111,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24946,
    "c": 0.0888,
    "h": 322
  },
  "luminance": 0.0135
}

Semantic roles & 50–950 ramp

primary
#340E3A
secondary
#38752F
accent
#E44459
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340E3A

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

Preview Lab → · Contrast checker → · Palette generator →

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