#340834#340834

#340834 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.8% C 0.092 H 328.0°. Best body text is #FFFFFF at 17.07:1 contrast (WCAG AA passes).

Color values

HEX#340834
RGBrgb(52, 8, 52)
HSLhsl(300, 73%, 12%)
HSVhsv(300, 85%, 20%)
CMYKcmyk(0%, 84.6%, 0%, 79.6%)
CIE-LABlab(10.20, 27.89, -17.56)
CIE-LCHlch(10.20, 32.96, 327.81°)
OKLaboklab(23.79% 0.0778 -0.0486)
OKLCHoklch(23.79% 0.092 328)
XYZxyz(2.1228, 1.1518, 3.3587)
Luminance0.0115 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340834 #083408
analogous
#1E0834 #340834 #34081E
triadic
#340834 #343408 #083434
tetradic
#340834 #341E08 #083408 #081E34
square
#340834 #341E08 #083408 #081E34
split-complementary
#340834 #1E3408 #08341E
monochromatic
#1B041B #1B041B #340834 #691069 #9E189E

Accessibility & contrast

On white

17.07
#340834 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340834 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340834
17.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340834#FFFFFF#000000##FFFFFF
##3408341.0017.071.2317.07
#FFFFFF17.071.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021835
Deuteranopia (green-blind)
#141E33
Tritanopia (blue-blind)
#360F1D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340834;
/* rgb */ color: rgb(52, 8, 52);
/* oklch */ color: oklch(23.8% 0.092 328.0);
Tailwind
colors: {
  custom: {
    50: '#6e4d6b',
    500: '#340834',
    950: '#000000',
  },
}
SCSS
$custom: #340834;
$custom-light: #6e4d6b;
$custom-dark: #000000;
JSON
{
  "hex": "#340834",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 52
  },
  "hsl": {
    "h": 300,
    "s": 73.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.23791,
    "c": 0.09176,
    "h": 328
  },
  "luminance": 0.01152
}

Semantic roles & 50–950 ramp

primary
#340834
secondary
#257325
accent
#F03838
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070106
muted
#7A777A

Preview Lab

Preview with #340834

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

Preview Lab → · Contrast checker → · Palette generator →

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