#340838#340838

#340838 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.1% C 0.096 H 324.3°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#340838
RGBrgb(52, 8, 56)
HSLhsl(295, 75%, 13%)
HSVhsv(295, 86%, 22%)
CMYKcmyk(7.1%, 85.7%, 0%, 78%)
CIE-LABlab(10.48, 28.72, -20.01)
CIE-LCHlch(10.48, 35.01, 325.14°)
OKLaboklab(24.08% 0.0777 -0.0558)
OKLCHoklch(24.08% 0.096 324.3)
XYZxyz(2.2168, 1.1894, 3.8534)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340838 #0C3808
analogous
#1C0838 #340838 #380824
triadic
#340838 #383408 #083834
tetradic
#340838 #381C08 #0C3808 #082438
square
#340838 #381C08 #0C3808 #082438
split-complementary
#340838 #243808 #08381C
monochromatic
#19041B #19041B #340838 #66106E #9717A3

Accessibility & contrast

On white

16.97
#340838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340838
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340838#FFFFFF#000000##FFFFFF
##3408381.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001939
Deuteranopia (green-blind)
#111E37
Tritanopia (blue-blind)
#35111F
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340838;
/* rgb */ color: rgb(52, 8, 56);
/* oklch */ color: oklch(24.1% 0.096 324.3);
Tailwind
colors: {
  custom: {
    50: '#6e4d6f',
    500: '#340838',
    950: '#000000',
  },
}
SCSS
$custom: #340838;
$custom-light: #6e4d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340838",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 295,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.24083,
    "c": 0.09564,
    "h": 324.3
  },
  "luminance": 0.01189
}

Semantic roles & 50–950 ramp

primary
#340838
secondary
#2C7725
accent
#F23646
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070107
muted
#7A777A

Preview Lab

Preview with #340838

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

Preview Lab → · Contrast checker → · Palette generator →

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