#340835#340835

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

Color values

HEX#340835
RGBrgb(52, 8, 53)
HSLhsl(299, 74%, 12%)
HSVhsv(299, 85%, 21%)
CMYKcmyk(1.9%, 84.9%, 0%, 79.2%)
CIE-LABlab(10.27, 28.10, -18.18)
CIE-LCHlch(10.27, 33.46, 327.10°)
OKLaboklab(23.86% 0.0778 -0.0504)
OKLCHoklch(23.86% 0.093 327)
XYZxyz(2.1456, 1.1609, 3.4785)
Luminance0.0116 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340835 #093508
analogous
#1E0835 #340835 #350820
triadic
#340835 #353408 #083534
tetradic
#340835 #351E08 #093508 #082035
square
#340835 #351E08 #093508 #082035
split-complementary
#340835 #203508 #08351E
monochromatic
#1A041B #1A041B #340835 #68106A #9C189F

Accessibility & contrast

On white

17.04
#340835 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340835
17.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340835#FFFFFF#000000##FFFFFF
##3408351.0017.041.2317.04
#FFFFFF17.041.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021836
Deuteranopia (green-blind)
#131E34
Tritanopia (blue-blind)
#360F1E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340835;
/* rgb */ color: rgb(52, 8, 53);
/* oklch */ color: oklch(23.9% 0.093 327.0);
Tailwind
colors: {
  custom: {
    50: '#6e4d6c',
    500: '#340835',
    950: '#000000',
  },
}
SCSS
$custom: #340835;
$custom-light: #6e4d6c;
$custom-dark: #000000;
JSON
{
  "hex": "#340835",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 53
  },
  "hsl": {
    "h": 298.667,
    "s": 73.77,
    "l": 11.961
  },
  "oklch": {
    "l": 0.23863,
    "c": 0.09271,
    "h": 327
  },
  "luminance": 0.01161
}

Semantic roles & 50–950 ramp

primary
#340835
secondary
#277425
accent
#F0373B
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340835

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

Preview Lab → · Contrast checker → · Palette generator →

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