#340839#340839

#340839 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.2% C 0.097 H 323.5°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#340839
RGBrgb(52, 8, 57)
HSLhsl(294, 75%, 13%)
HSVhsv(294, 86%, 22%)
CMYKcmyk(8.8%, 86%, 0%, 77.6%)
CIE-LABlab(10.55, 28.94, -20.61)
CIE-LCHlch(10.55, 35.53, 324.53°)
OKLaboklab(24.16% 0.0776 -0.0575)
OKLCHoklch(24.16% 0.097 323.5)
XYZxyz(2.2415, 1.1993, 3.9835)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340839 #0D3908
analogous
#1C0839 #340839 #390825
triadic
#340839 #393408 #083934
tetradic
#340839 #391C08 #0D3908 #082539
square
#340839 #391C08 #0D3908 #082539
split-complementary
#340839 #253908 #08391C
monochromatic
#18041B #18041B #340839 #65106F #9617A4

Accessibility & contrast

On white

16.94
#340839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340839 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340839
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340839#FFFFFF#000000##FFFFFF
##3408391.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193A
Deuteranopia (green-blind)
#101E38
Tritanopia (blue-blind)
#351120
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340839;
/* rgb */ color: rgb(52, 8, 57);
/* oklch */ color: oklch(24.2% 0.097 323.5);
Tailwind
colors: {
  custom: {
    50: '#6e4d6f',
    500: '#340839',
    950: '#000000',
  },
}
SCSS
$custom: #340839;
$custom-light: #6e4d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340839",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 57
  },
  "hsl": {
    "h": 293.878,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.24159,
    "c": 0.09662,
    "h": 323.5
  },
  "luminance": 0.01199
}

Semantic roles & 50–950 ramp

primary
#340839
secondary
#2D7825
accent
#F23649
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340839

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

Preview Lab → · Contrast checker → · Palette generator →

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