#340535#340535

#340535 is a very dark, moderate purple. Relative luminance 0.011; OKLCH L 23.5% C 0.097 H 327.2°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#340535
RGBrgb(52, 5, 53)
HSLhsl(299, 83%, 11%)
HSVhsv(299, 91%, 21%)
CMYKcmyk(1.9%, 90.6%, 0%, 79.2%)
CIE-LABlab(9.77, 29.53, -18.97)
CIE-LCHlch(9.77, 35.10, 327.28°)
OKLaboklab(23.51% 0.0818 -0.0527)
OKLCHoklch(23.51% 0.097 327.2)
XYZxyz(2.1130, 1.0958, 3.4677)
Luminance0.0110 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340535 #063505
analogous
#1C0535 #340535 #35051E
triadic
#340535 #353405 #053534
tetradic
#340535 #351C05 #063505 #051E35
square
#340535 #351C05 #063505 #051E35
split-complementary
#340535 #1E3505 #05351C
monochromatic
#1B031C #1B031C #340535 #6B0A6D #A210A5

Accessibility & contrast

On white

17.22
#340535 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#340535 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340535
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340535#FFFFFF#000000##FFFFFF
##3405351.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001736
Deuteranopia (green-blind)
#111D34
Tritanopia (blue-blind)
#360D1D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340535;
/* rgb */ color: rgb(52, 5, 53);
/* oklch */ color: oklch(23.5% 0.097 327.2);
Tailwind
colors: {
  custom: {
    50: '#6e4b6c',
    500: '#340535',
    950: '#000000',
  },
}
SCSS
$custom: #340535;
$custom-light: #6e4b6c;
$custom-dark: #000000;
JSON
{
  "hex": "#340535",
  "rgb": {
    "r": 52,
    "g": 5,
    "b": 53
  },
  "hsl": {
    "h": 298.75,
    "s": 82.759,
    "l": 11.373
  },
  "oklch": {
    "l": 0.23506,
    "c": 0.09735,
    "h": 327.2
  },
  "luminance": 0.01096
}

Semantic roles & 50–950 ramp

primary
#340535
secondary
#217620
accent
#F92F33
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070107
muted
#7A777A

Preview Lab

Preview with #340535

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

Preview Lab → · Contrast checker → · Palette generator →

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