#340836#340836

#340836 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.094 H 326.1°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#340836
RGBrgb(52, 8, 54)
HSLhsl(297, 74%, 12%)
HSVhsv(297, 85%, 21%)
CMYKcmyk(3.7%, 85.2%, 0%, 78.8%)
CIE-LABlab(10.34, 28.30, -18.79)
CIE-LCHlch(10.34, 33.97, 326.42°)
OKLaboklab(23.94% 0.0778 -0.0522)
OKLCHoklch(23.94% 0.094 326.1)
XYZxyz(2.1688, 1.1702, 3.6010)
Luminance0.0117 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340836 #0A3608
analogous
#1D0836 #340836 #360821
triadic
#340836 #363408 #083634
tetradic
#340836 #361D08 #0A3608 #082136
square
#340836 #361D08 #0A3608 #082136
split-complementary
#340836 #213608 #08361D
monochromatic
#1A041B #1A041B #340836 #67106B #9B18A1

Accessibility & contrast

On white

17.02
#340836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340836
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340836#FFFFFF#000000##FFFFFF
##3408361.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011937
Deuteranopia (green-blind)
#131E35
Tritanopia (blue-blind)
#36101E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340836;
/* rgb */ color: rgb(52, 8, 54);
/* oklch */ color: oklch(23.9% 0.094 326.1);
Tailwind
colors: {
  custom: {
    50: '#6e4d6d',
    500: '#340836',
    950: '#000000',
  },
}
SCSS
$custom: #340836;
$custom-light: #6e4d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#340836",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 54
  },
  "hsl": {
    "h": 297.391,
    "s": 74.194,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23935,
    "c": 0.09368,
    "h": 326.1
  },
  "luminance": 0.0117
}

Semantic roles & 50–950 ramp

primary
#340836
secondary
#287525
accent
#F1373F
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340836

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

Preview Lab → · Contrast checker → · Palette generator →

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